You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
417 B
Plaintext
23 lines
417 B
Plaintext
Shader "Suimono2/DepthMask" {
|
|
|
|
SubShader {
|
|
|
|
// Render the mask after regular geometry, but before masked geometry and
|
|
// transparent things.
|
|
Tags {"Queue" = "Geometry+10"}
|
|
|
|
//Stencil{
|
|
// Ref 1
|
|
// Comp Always
|
|
// Pass replace
|
|
//}
|
|
|
|
// Don't draw in the RGBA channels; just the depth buffer
|
|
ColorMask 0
|
|
ZWrite On
|
|
//ZTest Greater
|
|
|
|
// Do nothing specific in the pass:
|
|
Pass {}
|
|
}
|
|
} |