benilla-re systems structs docs

GetNightFraction

function · lighting · primitive

Address
0x6d4860 · 35 bytes, up to 0x6d4882
Meaning
Evaluates the first night fraction track at the time of day plus an offset
Confidence
verified, proof one
Finding
lighting/daynight#night-fraction
Test
lighting::dn_track_phase_wrap_difftest

Finding: Night fraction in lighting: day-night

Each build stores two curves of the time of day: +0x1ac is 1 at night and 0 by day, from 1.0 at 21:30 and 06:00 to 0 at 20:30 and 07:00; +0x1b0 rises from 0.25 at 02:00 to 1.0 at 12:00. The map object group fade 0x6b4090 reads the first.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.