Look
Where the sun stands and what colour the hour is.
local Look = require("game.world.Look")
local frame = Look.at(FL.state.sunHeight, FL.state.phase, FL.state.phaseT)
frame.sun.dir, frame.sun.color, frame.sun.intensity
frame.ambient, frame.sky, frame.fog, frame.daylight, frame.dawn
One call answers the whole atmosphere for one moment of the day, sampled off a
handful of stops on the sun's height — the same FL.sunHeightFor the beam's
power and the HUD's sun arc read, so the light on the hill and the mechanics
never disagree. Dusk is blended in over its own phase, because it is not the
dawn run backwards: the light goes rose rather than amber and the fog comes up
cold.
Nothing here touches the scene. game.world.Hillside applies what it returns.
daylight is 0 at night and 1 in full day, for anything that fades with the
day (the mist, the shrine lantern). dawn peaks exactly as the sun crests the
valley, for anything that belongs to that window alone.
Scoped to this part · feeds back into the world's score.