Files
BABA_YAGA/Assets/Editor/Resources/AlphaMask.shader
2026-06-04 10:42:23 +07:00

23 lines
544 B
Plaintext

Shader "Separate Alpha Mask" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_Alpha ("Alpha (A)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType" = "Transparent" "Queue" = "Transparent"}
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
ColorMask RGB
Pass {
SetTexture[_MainTex] {
Combine texture
}
SetTexture[_Alpha] {
Combine previous, texture
}
}
}
}