DepthMask-Unity-Shader icon indicating copy to clipboard operation
DepthMask-Unity-Shader copied to clipboard

Objects become insensitive to culling mask

Open andrealesani opened this issue 6 months ago • 0 comments

Hi, sorry I'm late to the party. Your shader is really awesome, but I can't make it work with multiple cameras and culling masks.

Basically, I would like to see the object with this shader in only one out of two cameras I have in the scene, so I have put the gameobject in a dedicated layer and I have removed said layer from one of the two cameras using the culling mask. The problem is that I will still see that gameobject in that camera as a gray shape.

Is it possible to have one of the cameras ignore the shader completely like it happens with standard materials?

andrealesani avatar Dec 12 '23 15:12 andrealesani