- Home /
Surface of a object appear under certain lights...
Hi there!
So I'm trying to make one bubble energy shield that is used to protect ships... Is there any material shadder that, if there isn't any light glowing on it, will be invisible? Otherwise, showing only a semi-translucent shade of any color?
Also, can I use layers to only allow certain lights to have that effect?
Thanks in advance.
JPB18
I don't think because to make it invisible you have to use renderer.enabled = false, so I think that is not possible, but I am not sure as I am not a shader developer. Wait for someone more experienced developer.
Answer by Meltdown · Nov 21, 2012 at 06:44 PM
Not 100% sure what you're asking, but you can use the Culling Mask on a light to determine which layers it will light up or not.
When you say "Is there any material shadder that, if there isn't any light glowing on it, will be invisible?", any Diffuse shader without any light on it will be invisible.
I'm sorry, I think I wasn't making my self clear... Everytime an explosion occurs a certain light (which is invisible to the camera) would illu$$anonymous$$ate the shields, revealing a part of the "bubble"... While in other circumstances, the bubble would be invisible, letting the things behind it totally visible...
Your answer
Follow this Question
Related Questions
Realtime point light + transparent shadow problem? 0 Answers
Transparency material not receiving shadows 0 Answers
Transparency seeing back of model 1 Answer
See backside of a transparent emissive shader? 0 Answers
Transparent shader with depth writes 3 Answers