Files
BABA_YAGA/Assets/Editor/Resources/AlphaMask.shader

23 lines
544 B
Plaintext
Raw Normal View History

2026-05-30 09:16:35 +07:00
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
}
}
}
}