Lighting
Lighting is its own level
Section titled “Lighting is its own level”Every map has lighting levels, separate from its props: the sun, fog, colour grading and the other effects that set the mood. A map ships several, one per time of day and platform (the ordinary one, Midnight Madness, the Holo-Ween one), and layers pick which is used. A whole map changes mood for an event without a single prop changing.
So if you want a map darker, oranger or foggier, it’s the lighting level you open, not the map’s props.
Most of the light is baked
Section titled “Most of the light is baked”Working out realistic light (light bouncing off walls, reflections in windows) is too slow to do while a game runs. So the game works it out ahead of time and stores the answer beside the map. This is called baking, and a map carries two kinds of baked light:
- Reflection probes: snapshots of the surroundings at points around the map, which shiny surfaces reflect and which give everything its ambient light.
- Light volumes: stored light filling areas of the map, on some lighting variants.
What that means for your changes
Section titled “What that means for your changes”Baked light is a snapshot of the map as it was. It doesn’t know about your changes:
| You | You’ll see |
|---|---|
| Add a prop | It’s lit by the light and reflections already baked there. It won’t cast its own bounce light or appear in reflections. |
| Move a wall | Reflections and bounced light can still show it where it used to be. |
| Add a whole new area | It picks up whatever light was baked nearby, which may not suit it. |
The sun in the lighting level still lights your props directly, as it lights everything else. It’s the bounced and reflected light that stays as it was baked.
Checking it in Studio
Section titled “Checking it in Studio”Studio’s viewport has a Game render mode that lights the level the way the game does, baked light included, and a Textured mode lit evenly so you can see everything. Check your changes in Game mode before trusting them; then check them in the game itself.
For programmers
The bake ships beside the map’s static lighting level: cubemap probes (reflections plus an ambient cube) and, on some variants, GI volumes. Lighting levels are swapped per season and platform by layer overrides on the master’s lighting entity. Nothing in the toolchain re-bakes, so geometry changes don’t update probes or volumes.
Where to go next
Section titled “Where to go next”Effects: sparks, smoke and glows.