benilla-re systems structs docs

SetOverrideLight

function · lighting · orchestration

Address
0x6d4620 · 7 bytes, up to 0x6d4626
Signature
void __fastcall (int32_t light)
Meaning
Stores the override light reference
Confidence
verified, proof one
Finding
lighting/daynight#override-light

Finding: Override light in lighting: day-night

Setting state +0x50 to a reference k switches the table to the light list's slot 0 reference k the next frame, with no blend; −1 is the normal light. 0x6d4620(4) sets it for a ghost and 0x6d4630 clears it. With an override the table is that record's gather, keeping the location's +0x64 to +0x8c, and the override's skybox column becomes the override skybox at weight 1.0. A nonzero +0x4c names the LightParams record to use instead; nothing live sets it.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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