benilla-re systems structs docs

LerpChannel

function · lighting · primitive

Address
0x6d15f0 · 48 bytes, up to 0x6d161f
Signature
float __stdcall (float a, float b, float t)
Meaning
Moves a toward b by t, subtracting when b is below a
Confidence
verified, proof one
Finding
lighting/daynight#area-overblend
Test
lighting::sky_scalar_lerp_difftest

Finding: Area overblend in lighting: day-night

0x6d30e0 moves the base record toward an area light's record by w. Each channel of the colours +0x04, +0x00, +0x4c, +0x08 to +0x1c, +0x20 to +0x30 and +0x34 to +0x40 becomes round(f32(lerp) − 0.5), ties to even, with alpha 0xff; the floats +0x44, +0x48, +0x50, +0x58 and +0x64 to +0x74 become the lerp. The lerp is a − (a − b)·w when b < a, else a + (b − a)·w. An area light's skybox adds its weight to a matching pair or takes a free one.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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