Skip to content

Instantly share code, notes, and snippets.

@jkrup
Created October 2, 2012 22:34
Show Gist options
  • Save jkrup/3823753 to your computer and use it in GitHub Desktop.
Save jkrup/3823753 to your computer and use it in GitHub Desktop.
Shader "TextureMask"
{
Properties
{
_Mask ("Culling Mask", 2D) = "white" {}
}
SubShader
{
//Tags {"Queue" = "Background"}
//Blend SrcAlpha OneMinusSrcAlpha
Blend One One
//Lighting Off
//ZWrite On
//ZTest Always
Alphatest LEqual .79
Pass {
SetTexture [_Mask] {combine texture}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment