Log inGet started
World

First Light: Betocsin

Branchmain
Branchesmain
Commit065ea629bf

README.md

firstlight

The hour over Betocsin, written as a ramp.

FL.at(dawn) reads the whole environment off one axis — Core.state.dawn, 0 in deep night and 1 when first light crests the estuary — and hands back the key light's direction, colour and strength, the ambient, every value the authored sky holds (its three gradient stops, the starfield, the moon, the glow over the estuary and the sun's disc), the height fog, the marched air the shafts come out of, the sea of fog's own colours and coverage, and how brightly the town's lanterns and lit windows burn.

Four keys, because the night over an estuary town has four moments: deep night, first blush, bone — the sky pale and cold above a hot rim, the sun at the waterline but not over it — and first light.

Two directions matter and they are not the same one. skySunDir and skyMoonDir point AT the sun and the moon as the sky draws them; sunDirection is the direction the KEY LIGHT travels, which is the moon's light early in the night and the sun's once it clears the water. Keeping them apart is what lets the moon hang where the camera can see it while the light still rakes the tower from the quarter the fiction puts it in.

FL.keys() hands back the keys themselves, for a tool that wants to render the ramp rather than fly through it.