benilla-re systems structs docs

BlendAreaLights

function · lighting · primitive

Address
0x6d2d00 · 868 bytes, up to 0x6d3063
Meaning
Blends the area lights around the camera into the light table
Confidence
verified, proof one
Finding
lighting/daynight#area-lights
Test
lighting::cloud_layer_distance_difftest, lighting::cloud_layer_factor_difftest, lighting::cloud_phase_index_difftest

Finding: Area lights in lighting: day-night

The Light records around the camera blend into the base record. Each list slot from 1 whose distance d from the camera eye, √(dx² + dy² + dz²) rounded to a float, is below its outer radius joins a max-heap by d. The heap drains farthest first: each light's record is gathered as for the base, with the storm blend, and blended in by w = 1 when d ≤ inner, else 1 − (d − inner) / (outer − inner). The nearest light is blended last.

The derivation is in the doc.

Callers 2

Callees 12

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