Hi all,
I have some experience and am comfortable with Unity’s JavaScript and Unity environment, however I am a complete novice when it comes to shader programming, so I need some pointers or help, here’s the situation:
I have found this great simple shader that masks out everything from pixelplacement.com. However, I would need to expand it so that I have control over which layer I want to mask out. Here is the code:
Shader "Depth Mask" {
SubShader {
Tags {"Queue" = "Geometry-10" }
Lighting Off
ZTest LEqual
ZWrite On
ColorMask 0
Pass {}
}
}
Is there a way to do this? Can anyone help me out with this, please? Many thanks in advance!
Voja