I have been writing a CG based shader that does operations on the _SpecularLightColor (or it could almost use the _ModelLightColor), and all is great as a Directional Light, but as soon as I switch to Spotlight or turn on another light, my shader disappears (or I completely lose the Specular contribution). And if its a point light then I lose my transparency (based on an alpha-map).
I've been going thru all the Spec shaders I can find but I cannot determine how to either specify to use the strongest (or only) direction light, or to allow all lights to contribute no matter what their type.
(FYI: I am using the _SpecuarLightColor0 convention to get the light response)
asked Aug 27 '10 at 12:31 AM