17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
Shader "MirrorsAndPortals/Portals/DepthMask"
|
|
{
|
|
SubShader{
|
|
// Render the mask after regular geometry, but before masked geometry and
|
|
// transparent things.
|
|
Tags {"Queue" = "Geometry-2" }
|
|
|
|
// Don't draw in the RGBA channels; just the depth buffer
|
|
ColorMask 0
|
|
ZWrite On
|
|
ZTest Always
|
|
|
|
// Do nothing specific in the pass:
|
|
Pass {
|
|
}
|
|
}
|
|
} |