[Shader] Set the color of a shadow which the object is casting, per object?
Is there a way to set the color of a shadow which the object is casting, per object?
Example: Is there any way to make one object cast blue shadow, and another object cast red shadow?
What I tried: I made a shader that can render custom shadow color, but that shadow color can be set only on reciever objects. I need to pick different colors on the caster object.
Is there any way to get shadow caster shader property inside a shadow reciever shader? That way I could easily pick a color on the caster, and apply it on reciever.
I hope that can be achieved using UnityCG.cginc, AutoLight.cginc and Lighting.cginc.
P.S. I'm not looking for a 100% done solution, any help is appreciated!
Your answer
Follow this Question
Related Questions
FBX Model looks wrong after scaling 0 Answers
How to make 2D Sprite Shadow? 0 Answers
Mesh & Shadow crash on Android platform build 0 Answers
Low cost light with texture or shader, it's possible ? 0 Answers