Shader "Const_47/Projector Opacity" {
Properties {
_Opacity ("Opacity", Range (0,1)) = 0.5
_ShadowTex ("Cookie(RBG) Mask(A)", 2D) = "gray" { TexGen ObjectLinear }
_FalloffTex ("FallOff", 2D) = "white" { TexGen ObjectLinear }
}
Subshader {
Tags { "RenderType"="Transparent" }
Pass {
ZWrite Off
Offset -1, -1
Fog { Color (1, 1, 1) }
AlphaTest Greater 0
ColorMask RGB
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_ShadowTex] {
constantColor (1,1,1,[_Opacity])
combine texture, texture * constant
Matrix [_Projector]
}
SetTexture [_FalloffTex] {
constantColor (1,1,1,0)
combine previous lerp (texture) constant
Matrix [_ProjectorClip]
}
}
}
}