Created
August 28, 2015 08:58
-
-
Save nevarman/b0c7342eeb13bebe429f to your computer and use it in GitHub Desktop.
Dept mask shader for Unity3d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/DeptMask" { | |
SubShader { | |
Tags {"Queue" = "Geometry+10" } | |
Lighting Off | |
ZTest LEqual | |
ZWrite On | |
ColorMask 0 | |
Pass {} | |
} | |
/*SubShader { | |
Tags {"Queue" = "Geometry+10" } | |
ColorMask 0 | |
ZWrite On | |
Pass {} | |
}*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment