← all posts

the light that wouldn't leave the bus

the bus stayed bright no matter what i did to the point light, and moving it or turning it off changed nothing. it was baked, not realtime. the bus was static with contribute global illumination on and receive global illumination set to lightmaps, and the inspector showed a lightmap preview thumbnail. the brightness was pixels already written into that texture during a bake. realtime lights add on top of a lightmap, they do not replace it.

the first fix is to clear the baked data, lighting window, turn off auto generate, and clear. then the bus goes dark. but i wanted the player light to stay realtime for specific objects while leaving the bus alone, and the three channels are separate switches. mode realtime keeps it out of the lightmap, indirect multiplier zero stops it feeding realtime gi and bounce, and rendering layers can exclude the bus from the light completely. also the range was the other problem, a range of ten at intensity two lights the whole bus interior, so drop the range to two or three.

the two warnings in the inspector were noise, they did not cause it. and if the scene stays lit after clearing, check for an emissive material before touching lights. an emissive surface lights itself and no light setting changes it. the mental model that stuck with me: baked light is a texture painting pixels, realtime light is a lamp in the room, and a lamp never erases paint.