- Home /
Different ambient light for indoor and outdoor
I have an enclosed room and some buildings outside the room. My Ambient Color Brightness is 0.8, so that my room is bright enough. The outside buildings are too bright, because they are lit directly, and 0.8 Brightness is too high for them. The preferable brightness for outdoor should be about 0.1. I found a solution, that I can somehow edit Standard shader with additional ambient color, which I can set for every material I have. But I can't figure out, how to do it, because I'm not familiar with shaders. Could someone help me to modify Standard shader, so I could change ambient color of every my material?
Answer by Pangamini · Jan 27, 2018 at 02:11 PM
Ambient light comes from light probes. Just add some to your scene and you can make your interiors perfectly dark / using custom ambient lighting. No need to modify the shaders. For static objects, use some kind of lightmapping
I tried to put light probe into my room to make it brighter, but it didn't help. It did nothing.
Light probes only affect dynamic objects (or if you specify in your renderer otherwise). Normally for static objects (as building walls should be) there's lightmapping. Either some static one, or the realtime global illu$$anonymous$$ation (the Enlighten engine included in unity). For static objects, there are textures rather than spherical-harmonics light probes, which are good for small dynamic objects. Try using some lightmapping and see the result