I am currently working on Hasty Melons, a watermelon racing game and I need some help to figure out how to make a specific shader.
In the game, sometimes relevant objects are behind walls and I would like to make them render in front of everything.
So far I managed to do something similar by tweaking the z-depth of the material but it gave unpredictable results.
Here is an example from a gif I made some time ago:
I tried to find resources about how to do that in a glsl shader but can’t find anything that seems related enough.
I’m very new to glsl shaders, so I would greatly appreciate if anyone had hints about how to achieve that