DepthMask shader not working

Hi there,

I’m having some unexpected trouble with a DepthMask shader. I have tried the version from the UnifyCommunity as well as the one bundled with Qualcomm’s Vuforia/ARToolkit. The funny thing is that this used to be working and now it’s not! I have the depthMask shader on an object and I want it to mask out the objects behind it. I’ve tried setting the render queue to both 5000 and 1000. The camera is clearing Solid Color.

Any ideas? the funny thing is that the shader is clearing the grid in the editor, and nothing else!

Hm I guess setting the render queue was workign against me. Removing that code did the trick!