benilla-re systems structs docs

EvalLightIntBand

function · lighting · primitive

Address
0x6d62e0 · 256 bytes, up to 0x6d63df
Signature
uint32_t * __fastcall (uint32_t *out, uint32_t h, const void *row)
Meaning
Interpolates a LightIntBand row's colour at half-minute h into out and returns out
Confidence
verified, proof one
Finding
lighting/daynight#colour-band-value
Test
lighting::dn_band_lerp_bgra_difftest, lighting::dn_band_repack_half_boundary_difftest, lighting::dn_band_single_key_constant_difftest, lighting::dn_band_zero_key_commit_difftest

Finding: Colour band value in lighting: day-night

A colour band's value at h is opaque black, 0xff000000, when it has no keys. Otherwise each of its three channels is the low byte of floor(f32(lo + (hi − lo)·f + 512)) − 512, with lo and hi the channel's byte at keys i and next and f the fraction; the result is 0xff000000 with the channels from the record's byte 2 in bits 16 to 23, byte 1 in 8 to 15 and byte 0 in 0 to 7.

The derivation is in the doc.

Callers 2

Callees 1

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