- Home /
how to build impressive shaders for iOS?
hi there!
I am new to shader programming. I want to create a black, reflective material which glows white on the edges, like this cube:
for iPhone. How could I do that?
thnx!
your image doesn't show up for me.. but i have to ask- do you have experience writing shaders?
If not, then the first step is always going to be to start at the bottom and learn how to do it. There are a few tutorials in the unity docs. I would start there and see where it takes you.
All's that is is an emissive reflective shader. Just add an emissive component (1 $$anonymous$$us the dot product of the normal and the view direction) to the reflective shader. Then there are one or two other quick changes to make for optimizations in the shader directive.
Answer by almo · Jul 07, 2011 at 01:11 PM
1) Write an awesome shader. 2) Adapt it to the iPhone.
I'm serious. The first step is to learn to write awesome shaders, then learn how to work with shaders on the iPhone.
didn't I read somewhere that ShaderLabs-Shaders doesn't work on the iPhone? so learning ShaderLabs syntax doesn't take me higher... :-(
I don't mean the syntax per se. I mean just how to design and write shaders in general. You have to know how they work before dealing with the iPhone's limitations.