23 lines
544 B
Plaintext
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
|
|
}
|
|
}
|
|
}
|
|
} |