I am currently working on a 3rd person player project where the players will have any walls between them and the camera stencil’d.
So to do this I decided to add a sphere that would stencil the walls away, however, it also stencil the walls behind the players as well and I’m trying to figure out what the best way to resolve this would be.
My first thought was to just add another stencil shader behind it that would reset it, but I then realized whenever they overlap in FoV the sphere gets overwritten so the walls don’t disappear.
Any advice on how to achieve what I want? Or do I need to go and make a script that will set only the walls I want stenciled and then any walls I don’t currently want stencil’d a different shader?