- Home /
Hiding a sprite partially (shader? masking?)
I've made a small shadow system to my fully 2D game, so the objects and characters can be pretty easily covered with the shadows and this looks nice. However, there's a problem with player's shadow when entering other shadows. I need to make the sprite vanish partially. A picture below shows the problem: PICTURE https://i.imgur.com/S5v1yws.png
I have already found some solutions: (https://answers.unity.com/questions/1093290/hide-part-of-a-sprite-that-is-under-another-sprite.html) (https://answers.unity.com/questions/787137/sprite-masking.html)
but I'm really fresh into shaders and this is too hard to me.
Just need a sprite to partially become invisible when entering a sprite on the same layer (there's kinda mess in sorting order because of my shading system).
Could anyone help? I'd be very grateful!