benilla-re systems structs docs

s_sunDiscPolarTrack

global · lighting

Address
0xce8d64 · 40 bytes, up to 0xce8d8b
Type
float[10]
Meaning
Holds the sun disc's polar angle track, five keys
Confidence
verified, proof one
Finding
lighting/celestial#celestial-bodies

Finding: Celestial bodies in lighting: sun, moons and stars

Each body sits 12 units from the camera eye along (cos a·sin p, sin a·sin p, cos p), normalized after the x product is rounded to a float, with its own azimuth and polar tracks. The sun disc and white moon use the time of day; moon02 uses the phase ((day + time) mod 1.7)/1.7, computed in 1/65536 steps. A body's size is its size track times its base scale: 1.0 for the sun disc, 1.75 for the white moon, 1.0 for moon02. The sun glare takes the sun disc's position, the moon glare the white moon's position, and the moon glare's two scale ends the white moon's size.

The derivation is in the doc.