OptionalsunShadow-casting sun: direction, color, and intensity follow the cycle.
OptionalsunPlain directional light alternative to the rig (position is set along lightDir).
OptionalambientOptionalterrainTerrain shader material — uLightDir / uLightColor / uAmbient follow the cycle.
OptionalroadRoad overlay material — takes the same light uniforms as the terrain, so roads darken with the ground they sit on instead of glowing after dark.
OptionallightAny other materials using the same hand-rolled light uniforms
(uLightDir / uLightColor / uAmbient) — the map skirt, and your own
shaders that borrowed the trio. Materials without them are skipped.
OptionalliquidLiquid material sets to tint (water darkens at night; emissive is unaffected).
OptionalsceneScene whose background color tracks the sky.
OptionalskyGradient sky dome — takes the horizon/zenith colors and the luminary glow.
OptionalgodCrepuscular rays — take the sun's direction and color, and fade out with the daylight, so the shafts fan from the same disc the dome draws.
What applyTo pushes the evaluated state onto. Every field optional — supply what your scene has.