◇
component · drop-in viewer
Dawn
One instance, on `mount_dawn`. Everything the player can see that is not an object is decided here.
by·posted 1mo ago
What it does
Dawn
One instance, on mount_dawn. Everything the player can see that is not
an object is decided here.
- The sun: a single grazing light from the south, its elevation, colour and strength all read off how far the rover stands from the dawn line. Below the horizon and dead in the frozen dark; climbing and warm-white where the regolith cooks.
- The earthlight: the indigo fill that is the only source left when the sun is gone. Zeroing the sun leaves the scene blue and legible rather than black, which is the whole point of being on the nearside.
- The sky:
game.dawn.nearside_sky, with Earth's direction and size driven from the liveui.screenSize()so it lands in the top band of a tall frame and of a wide one. - The line:
game.dawn.terminator, a screen-space pass that finds the dawn line in world space and lays the copper band over whatever terrain is standing there. - The grade: bloom, then
game.dawn.gradefor the split-tone, vignette and grain.
All of it is read off ONE number — the rover's distance from the line —
through NS.lightAt, which is the same function the rules score the
cargo with. So the picture cannot disagree with the meter: when the frame
goes white the cargo is cooking, and when it goes blue it is freezing,
because both came from the same call.
Publishes dawn
| call | answers |
|---|---|
lightAtRover() | sunlight on the rover, 0..1 |
sunDir() | the direction the sunlight travels, {x,y,z} |
bandColor(band) | the colour standing for hot / warm / dusk / cold |
terminatorZ() | where the line is, in world Z |
pulse(kind, strength) | hit the frame with a colour push |
It reads rules.terminatorZ() when the rules are up and runs the line
off its own clock when they are not, so the light still moves and the
slice can be judged on its own.
Fields
| field | what it does |
|---|---|
intensity | master scale on the sun, the band and the grade |
band | whether the terminator pass is in the frame |
grade | whether the bloom + grade passes are in the frame |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.