- Home /
Question by
neshius108 · Aug 06, 2018 at 09:44 AM ·
shaderspritealpha
Unable to add Tint/Alpha support to surf lambert shader
Hello there!
I have found in the forums a pretty neat and straightforward shader for adding shadows to normal sprites (https://github.com/anlev/Unity-2D-Sprite-cast-and-receive-shadows/blob/master/SpriteShadow.shader ).
I found myself needing to be able to also set the alpha and tint of the sprite, which this shader currently doesn't support. After some research and attempts, I am still unable to get it to properly read from the Color/Alpha provided in the Sprite Renderer.
I tried adding alpha
, alpha:fade
, keepalpha
and using Blend SrcAlpha OneMinusSrcAlpha
.
What am I missing?
Thanks in advance!
Comment