mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 20:40:57 +00:00
23 lines
539 B
GLSL
23 lines
539 B
GLSL
Shader "Custom/MaskTest" {
|
|
|
|
Properties
|
|
{
|
|
_MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {}
|
|
_Cutoff ("Base Alpha cutoff", Range (0,.9)) = .5
|
|
_Stencil ("Stencil Ref", Float) = 0
|
|
}
|
|
|
|
SubShader {
|
|
Tags {"Queue" = "Transparent+1"}
|
|
Offset 0, -1
|
|
ColorMask 0
|
|
ZWrite On
|
|
Pass
|
|
{
|
|
AlphaTest Greater [_Cutoff]
|
|
SetTexture [_MainTex] {
|
|
combine texture * primary, texture
|
|
}
|
|
}
|
|
}
|
|
} |