Atmosphere.sceneModule
The room the machine stands in, and every light in the scene.
Atmosphere
The room the machine stands in, and every light in the scene.
The scene ships no lighting of its own. This module is the whole of it: the key light down the tower shaft, the cold fill, the bounce, the ambient term, the sky, eight coloured window shafts, six oil lamps, the air they travel through, and the camera the whole thing is photographed with.
What it builds
Everything hangs off one root, AtmosphereRoot.
| Group | What it is |
|---|---|
tower_shell | 24 wall segments, 12 ribs and two gallery ledges, standing in a ring at shellRadius. Open at the top, which is what lets the key light fall the length of the shaft. |
tower_floor | The tower floor, far below the outermost gear. |
tower_dial | A clock face the size of the tower, laid into that floor — twelve hour marks and a kerb ring. |
tower_glazing | Eight bays: a great window, its iron tracery, a clerestory above it, and the spot light standing behind the glass that throws the bay's shaft across the machine. |
tower_lamps | Six oil lamps on brackets off the lower gallery — near-field specular, so the brass carries moving highlights instead of one flat sheen. |
key_light / fill_light / bounce_light / ambient_light | The scene's light. key_light is the sun and carries the cascade shadows. |
tower_sky | Deep dusk, seen only straight up the shaft — and the reflection-probe fallback. |
tower_air | The medium the light scatters in, which is what makes the shafts visible. |
tower_dust | Motes hanging in the shafts. |
tower_camera | Ambient occlusion, edge antialiasing and the lens. |
Why the tower is segments and not a cylinder
A cylinder primitive is capped. A cap over the machine seals the shaft, the sun reaches nothing, and the interior renders black. A ring of segments leaves the top open, and the gap between the ribs is what cuts the falling light into bands.
Why the room exists at all
Brass is metal, and metal renders what it reflects. Until something is captured into the reflection-probe slot, a metallic surface has only the ambient term to draw on and reads as a dark disc. So the last thing this module does is capture the finished room into probe slot 0 and the sky into the fallback — that capture is what makes the board's brass read as brass.
Inputs
| Input | Default | What it does |
|---|---|---|
sunIntensity | 3.6 | The key light down the shaft. Everything else is balanced against it. |
shellRadius | 43 | Inner radius of the tower wall. The commander camera orbits inside this — raise it before moving the camera further out. |
dust | true | Motes hanging in the shafts. |
airDensity | 0.13 | The medium the light travels through. 0 empties the air, and the far wall then reads at the same contrast as the near gear. |
What it does not own
The board — the gear rings, the platforms, the escapement column — is
Machine.sceneModule's. This module lights it and builds the room around it,
and never spawns anything inside shellRadius at board height.
Scoped to this part · feeds back into the world's score.