ReadonlyaltitudeAltitude above the horizon, degrees.
ReadonlyaltitudeAltitude above the horizon, radians.
ReadonlyambientMinimum lighting multiplier (LINEAR RGB) so lit geometry never crushes to black at night — a dim cool floor (≈0 by day, rising after sunset). Consumer: mesh shader clamp.
ReadonlyambientAmbient fill scalar, 0..1 (never quite 0 — night keeps a faint fill).
ReadonlyambientAmbient/sky fill color in LINEAR RGB (0..1).
ReadonlyazimuthCompass azimuth: degrees from NORTH, clockwise (0=N, 90=E, 180=S, 270=W).
ReadonlyazimuthSunCalc-raw azimuth: radians, 0 = south, +ve = west (clockwise). Internal trig.
ReadonlycolorDirect sun color as a CSS #rrggbb string.
ReadonlycolorDirect sun color in LINEAR RGB (0..1) for shader math.
ReadonlydateThe instant this was computed for (a Date, UTC for the solar math).
ReadonlydirectionUnit vector pointing TOWARD the sun, in tile-local ENU (x=east, y=north, z=up).
ReadonlygradeEnvironment day/night color grade (sRGB multiplier, (1,1,1) by day) for BAKED-lit surfaces that can't be relit directionally: textured photogrammetry mesh, point clouds, gaussian splats. Warms at golden hour, dims cool at night. Consumer: textured-mesh / point / splat shaders.
ReadonlyintensityDirect-light intensity, 0..1 (0 below the horizon ramping up through twilight).
ReadonlyisaltitudeDeg > -0.833 (sun's upper limb at/above the horizon, with refraction).
ReadonlylatScene reference latitude the position was evaluated at, degrees (−90..90).
ReadonlylngScene reference longitude the position was evaluated at, degrees (−180..180).
ReadonlytwilightTwilight band, for sky tinting and widget readouts.
The single immutable source of truth for the sun at one instant and place. Computed by computeSunState and fanned out by GeoSunSystem to MapLibre's light/sky/hillshade AND the WebGL2 renderers. Every representation a consumer might want is precomputed so nothing downstream re-derives angles (and so nobody trips on the SunCalc south-vs-north azimuth convention). Plain data — structured-clone / worker safe.
Remarks
Angles come in both radians and degrees; read the field name suffix carefully. Colours come as both a CSS
#rrggbbstring and a linear-RGBVec3for shader math.