- Home /
Disable ambient light
Hi,
my environment are more beautiful in the scene when I disable the lights. Can we disable the ambient light in the game? When I do this in windows scene my models are best.
Answer by Eric5h5 · Mar 24, 2010 at 01:14 AM
Go to the render settings in Unity and turn down the ambient light color to pure black. It's not a real light; it's just a color that any shaders that make use of the ambient light constant can use.
This answer helped me but it creates another problem. I have a single room with light switch and I need to be able to toggle lights in room with this switch. The problem is that when I turn off lights, switch turns completely black when it shouldn't because I can't find it any more.
See screenshot You can press the red outlined button to show the scene if the ambient light is black
Great but the switch is still pitch black ingame when I turn off lights. Can I add some kind of faint glow to it so it doesn't illu$$anonymous$$ate the area but the player will still be able to see it? Some kind of emergency exit glow if you know what I mean.
Please do not re-open old, answered questions with new questions. Please start a new question, perhaps titled something like "How do I show an object in a scene with no ambient light?"
Answer by ecesis_llc · Aug 07, 2015 at 11:25 AM
For Unity 5 ambient scene lighting is now found under Window > Lighting > Scene.
Answer by domiii · Feb 11, 2017 at 08:59 AM
In Unity 5:
Open
Window -> Lighting
, go to theScene
tab.Set
Ambient Source
toColor
andAmbient Color
to black. This will eliminate one part of Ambient lighting.Next, you want to remove ambient light due to Skybox reflections by simply setting
Reflection Intensity
to0
.
Now, your light will only come from explicitly added light sources! :)
Answer by OfficialHermie · Oct 03, 2015 at 02:37 PM
I would so much like a menu item in the Unity Editor to turn off all lights so that we create them on our own. Perhaps some default settings are great, but the current ones are not to my liking. To be precise: I don't understand them.
Answer by doc.u · Dec 16, 2011 at 01:32 AM
To disable ambient light you need to go to the render settings in Unity , like Eric5h5 says, but set ambient color to pure white. In this case it will not affect your scene and models.
I highly doubt it. Ambient light is additive to the lighting equation, so pure black is the correct choice.
Your answer
Follow this Question
Related Questions
Change light.color over time, repeat 2 Answers
Ambient light and lightmapping 1 Answer
Independent Ambient Light Shader 0 Answers
How to make Cartoon-like scene lighting? 3 Answers
How do I prevent the Ambient Light from influencing lightmap bakes? 1 Answer