benilla-re systems structs docs

M2LightingInitialize

function · models · orchestration

Address
0x71bc30 · 55 bytes, up to 0x71bc66
Meaning
Clears a lighting record and stores its scene and position
Confidence
verified, proof one
Finding
models/lights#lighting-record

Finding: Lighting record in models: lights

0x71bc30(scene, position) zeroes a record and stores its scene and position. The record holds up to four point lights with their squared distances, the summed ambient and directional colours, 27 spherical harmonic terms (nine per channel), the fog and the clip plane.

offsetholds
+0x004position
+0x014flags: 1 lights in view space, 2 dominant light derived, 4 constants packed
+0x018, +0x024, +0x030directional sums colour·direction for red, green, blue
+0x03c, +0x048luminance-weighted direction sum, directional colour sum
+0x054ambient sum
+0x060, +0x078dominant light colour and direction
+0x06cthird colour sum
+0x084, +0x0a8, +0x0ccspherical harmonic terms for red, green, blue
+0x0f0seven packed constant vectors
+0x160, +0x170, +0x180nearest point lights, their squared distances, their count
+0x184 to +0x190fog start, fog end, 1/(end − start), fog colour
+0x19c, +0x1a0clip plane flag, plane

The derivation is in the doc.

Callers 7

Callees 0

None by a direct call or jump.

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