Update
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user