I’m trying to create an outline for everything on the scene, except from certain characters with a Customstencil of 4.
I don’t want those characters to get the outline from that PostProcess Material, but I can’t find a way to say to the material something like “If the Customstencil equals 4, then remove those characters from the Scenedepth”.
I’ve tried using an “If” node where I tell the program to skip the outline generation and getting the other part of the material to apply, but still that didn’t remove the custom stencil from the Scenedepth, and the outline works (is short) adding pixels around the Scenedepth objects. I can’t use just the Customdepth because I have others Customstencils with different colored outlines, so in short, I just need a way to remove that specific Customstencil 4 objects from the Scenedepth (aka outline generation).
I’ll leave an image from the important part of the shader and a link because the page didn’t let me upload the image normally for some reason .-. Thanks in advance .
Image Link: Screenshot_2.jpg - Google Drive