Unity 2018 and Depth Mask not working as I would expect
Hoping someone can help me here, I am convinced this is an issue with the shader. Just that I am not good with shaders to understand how to fix or even go about fixing this.
The link I am currently referencing from is
http://wiki.unity3d.com/index.php?title=DepthMask
Now, this does work. But it as an artefact that the object on top, appears to leave a trail behind on the masked object.
So the masked object uses the code in the above link, the other object is a standard shader.
Your answer
Follow this Question
Related Questions
Hidden layer that's not meant to show per culling mask... still shows inverted ghost in headset 1 Answer
Replace the camera's depth field view with another camera's view ? 0 Answers
Cut through camera render and display LITERALLY NOTHINGNESS 0 Answers
Z-Fighting Problem (Increasing Near Clipping Planes Problem) 1 Answer