no shadows with custom shader despite fallback

Hello,

may I draw your attention towards a post I put in Scripting bc I wasn’t aware of this forum and which hasn’t received an answer:

http://forum.unity3d.com/threads/200628-custom-surface-shader-neither-receives-nor-casts-shadows-despite-fallback

Here’s the content:

The “atten” parameter of the lightning function is what will have the shadow data normally. Multiplying this on your “c” output, before returning should give you a received shadow. This parameter also contains data for point and spot lights, so you really need to implement it, if you want this to work with other types of light than directional.
But as you don’t have a cast shadow as well, something may be wrong in other parts also. Something I don’t see right now. But Unity do all sorts of things behind the scene when compiling a shader, so it may even be the very fact you don’t use the “atten” parameter, disables the shadow system. I know I have had all sorts of problems from stuff like that, though not specifically with that parameter.

This did it for receiving and casting! Thank you!