hello
I am having difficulty finding information on how to use realtime shadows with my shaders. I found that they will cast shadows as long as I include a fallback shader, but they will still not receive them. this also seems to be sparsely documented...
thoughts?
Replies
Diffuse has a fallback of vertex lit, which contains within it two passes; Shadow Caster and Shadow Receiver. These are the two passes that allow the shader to cast and receive shadows.
To receive shadows in your own custom shader, use the macros/helpers defined for you in AutoLight.cginc...
Here's a full example shader...
http://forum.unity3d.com/threads/198141-Lighting-using-tangent-vector-and-also-using-surface-shaders?p=1344367&viewfull=1#post1344367