I am making a generic outline material, so it works on any mesh. Essentially I am trying to make a Sobel-esque outline, but I need help with what to do when the outlined object is behind another object.
Currently it does outline the mesh correctly, as it is using the CustomStencil buffer to allow for multiple colored outlines.
But I want it to outline where it intersects the floor, something like this.
Imagine that, but the same color all around, is what I am after.
Any guidance or links to tutorials with outlines like this would be greatly appreciated. Thanks.