- Home /
Reduce ammount of light
Hi
I am wondering how I can reduce the light level on a scene, so it will be necessary to use a torch or flashlight. I know how to make advanced torches and flashlights, but not how to reduce the light. So if you know something about this it would be really helpful. Because it is kind of annoying to have torches and flashlights when they don't have any function. But if anyone knows how to reduce the light level they will be VERY useful.
Answer by Chris 26 · Dec 24, 2011 at 07:49 PM
You could try (Edit->Render Settings->Ambient Light)
I think setting the color of the ambient light to black should do what you wanted to.
If he answered the question correctly click on the check mark so it will be known as an answered question.
Answer by aldonaletto · Dec 24, 2011 at 09:22 PM
You could use Color.Lerp to control the light intensity between black (no light) and the value initially set. The function ControlLight accepts values from 0 (no light) to 1 (initial light):
var ambLight: Color;
function Start(){
ambLight = RenderSettings.ambientLight;
}
// sets the ambient light intensity from 0 (no light) to 1 (full light):
function ControlLight(intens: float){
RenderSettings.ambientLight = Color.Lerp(Color.black, ambLight, intens);
}
Answer by ByteSheep · Dec 24, 2011 at 05:14 PM
When you add a directional light to your scene you can change the colour of the light in the inspector. If you change that to black then you should get a darker scene, I think.
Well I tried it but it did not work. I need to do something else to reduce the light extremely. I want it pretty much completely dark, and if I want it bright I can change it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613062344im_/https://answers.unity.com/themes/thub/images/avi.jpg)