Hi all, I don’t know shader lab at all and I have a simple problem I hope someone can help with!
I have a car, and I am projecting logos onto it.
Thanks to housewarmer for his additive projector shader, which helps me do this (1st pic).
Now, I want to be able to ‘highlight’ the areas i’ve projected logos onto, by ‘adding’ a semi transparent green colour over it. (2nd pic). I want this effect to be toggleable.
Can anyone help? I’ve attached housewarmer’s shader as a start below:
Shader "FX/Projector Additive" {
Properties {
_ProjTex ("Logo", 2D) = "gray" { TexGen ObjectLinear }
}
Subshader {
Pass {
ZWrite Off
Offset -1, -1
AlphaTest Less 1
ColorMask RGB
Blend OneMinusSrcAlpha SrcAlpha
SetTexture [_ProjTex] {
combine texture, ONE - texture
Matrix [_Projector]
}
}
}
}
This shader was originally was posted under http://forum.unity3d.com/viewtopic.php?t=12198&highlight=



