benilla-re systems structs docs

s_halfMinutesPerDay

global · lighting

Address
0x811630 · 4 bytes, up to 0x811633
Type
const float
Meaning
Holds 2880.0, the half-minutes in a day
Confidence
verified, proof one
Finding
lighting/daynight#time-of-day-to-half-minutes

Finding: Time of day to half-minutes in lighting: day-night

The light table build evaluates its bands at h = round(f32(t·2880) − 0.5), with t the time of day at state +0x4, the product rounded to a float and the rounding to nearest, ties to even, so an exact odd product comes out one low. For t in [0, 1) h runs from 0 to 2880. Other callers pass their own h: glue evaluates LightParams 3, bands 0 and 1, at h = 0.

The derivation is in the doc.