s_dayNightHalf
global · lighting
- Address
0x86f2c8· 4 bytes, up to0x86f2cb- Type
const float- Meaning
- Holds 0.5
- 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.