benilla-re systems structs docs

OverblendAreaLight

function · lighting · primitive

Address
0x6d30e0 · 1783 bytes, up to 0x6d37d6
Meaning
Blends one area light's record into the base record by its weight w
Confidence
verified, proof one
Finding
lighting/daynight#area-overblend
Test
lighting::cloud_record_overblend_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 1

Callees 2

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