Adjusting screen brightness through JavaScript?

Hey guys,

I was wondering, is it possible to change the screen brightness through script?

I know you can set things like, TimeScale, Audio Listener volume and graphics quality through script, but I’m not sure about brightness…

All answers are greatly appreciated!!!

-Grady

There are two ways :

If you have a lightmap in your scene you need to fake your “Gamma Correction” with an Image Effect on your camera, i found one 2 months ago but don’t remember the link ( ask google something like, gamma correction image effect or s.th.)

If you don’t have a lightmap try to change the AmbientLight Color (for example from black to white)

You can just put a big black rectangle over the screen, and change it’s alpha. This, or any other solution, is only appropriate for transient effects. You need to balance the brightness in your scene by getting the lighting (including ambient) and materials right. A final-pass global change is an inefficient workaround.