- Home /
Question by
Danisuper · Sep 15, 2017 at 05:22 PM ·
2dshaders2d spritescg
Need help with object behind another one shader 2d
Hey guys, I'm making a 2d game and I need the character to be still visible when it walks in front of objects of its same color. All the objects have the same Z value but have different order in layers. I started learning shaders but even if I change the ZWrite to On and change the RenderType tags it doesn't work. The effect I want to achieve is something like this: When the player's pixels are in front off another object's pixels the character changes to another color.
What should I do? Thanks in advance!
pic.png
(3.7 kB)
Comment