Tetra/Minesweeper/Assets/Art/Materials/TransparentCoverShader.shader
2025-05-01 01:48:08 -07:00

27 lines
378 B
GLSL

Shader "Custom/TransparentCoverShader"
{
Properties
{
_MainTex("Base (RGB) Alpha (A)", 2D) = "white" {}
_Cutoff("Base Alpha cutoff", Range(0,.9)) = .5
}
SubShader
{
Tags{ "Queue" = "Transparent+1" }
Offset 0, -1
ColorMask 0
ZWrite On
Pass
{
AlphaTest Greater[_Cutoff]
SetTexture[_MainTex]
{
combine texture * primary, texture
}
}
}
}