Adding Shadows to a Shader

Hey guys, I’m wondering how I would go about adding the ability to receive and give shadows to the toon shader? I won’t ask for someone to do it for me, but if somebody wouldn’t mind telling me how to go about it, it would be highly appreciated.

Thanks, Jordan.

You don’t need to code shadows yourself, Unity is doing it (as a pass after user’s ones I guess ?), but you need Unity Pro. Now that I think about it, maybe you can code Volume shadow as it takes meshes manipulation, but I think you need stencil as well. I’m digressing, sorry about that.

With Unity Free though, you cheat with Blob shadows. An object won’t be able to cast shadow on itself but that’s better than nothing.