Skip to content

Instantly share code, notes, and snippets.

@nevarman
Created August 28, 2015 08:58
Show Gist options
  • Save nevarman/b0c7342eeb13bebe429f to your computer and use it in GitHub Desktop.
Save nevarman/b0c7342eeb13bebe429f to your computer and use it in GitHub Desktop.
Dept mask shader for Unity3d
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