How to do 2D graphics like this ?

Hi,

I’m looking for a way to do graphics like this game : https://www.youtube.com/watch?v=kiQTvvDWUO4

When the player is behind a color, we are able to see it in white.

Does somebody can help me ?

Thanks.

I don’t know exactly how to do it, but I’m pretty sure you’ll need to have a custom shader and use rendertextures. It’s not straight-forward. I think the way it would work is, you render the player’s line to its own rendertexture, probably in black&white, and then blend that with the scene’s rendertexture and in the shader compare the pixel colour of the player RT with the colour of the scene RT.