Hello everyone!
I am trying to render an outline of my character when he is occluded behind objects. Currently, this is working using the below post-process shader and having the character render to the CustomDepth pass:
The problem is I would only like this to occur when the character is behind certain objects like walls, as opposed to all objects (Main culprit here is grass… seen below)
Any help is appreciated! Thanks