Hey Guys.
I have the following shader I’m using for blob shadows. I would like to use another shader (based on the one below) to illuminate instead of darken an area, pretty much like a light. How do I have to change my code?
Thanks
1.Shader "FX/Projector Multiply" {
Properties {
_ShadowTex ("Cookie", 2D) = "fresnel.png" {
TexGen ObjectLinear
}
_FalloffTex ("FallOff", 2D) = "fresnel.png" {
TexGen ObjectLinear
}
}
Subshader {
Pass {
ZWrite off
Offset -1, -1
Fog { Color (1, 1, 1) }
AlphaTest Greater 0
ColorMask RGB
Blend DstColor Zero
SetTexture [_ShadowTex] {
combine texture, ONE - texture
Matrix [_Projector]
}
SetTexture [_FalloffTex] {
constantColor (1,1,1,0)
combine previous lerp (texture) constant
Matrix [_ProjectorClip]
}
}
}
}