Question by
Galghorn · Aug 12, 2016 at 01:58 PM ·
2dshadersspritesspriterenderer
Need to make a fake 2D shadow mask shader
Hi !
I tear my hairs on a problem : I need to make a shadow mask for my 2D game.
Basically, what I need is a shader that doesn't draw on the background while preserving it's transparency to act like a shadow on the sprite behind it.
Here is an exemple :
Can anyone give me a direction ? I don't know how to make shaders, so if you can give me an exemple, an existing shader name I can search for... It would be very appreciated.
Thanks for your help.
maskshaderexemple.jpg
(42.3 kB)
Comment
Hi, did you find a solution? I struggle with the same problem