benilla-re systems structs docs

DrawMapEntity

function · terrain · orchestration

Address
0x6c0cc0 · 44 bytes, up to 0x6c0ceb
Signature
void __fastcall (void *pass, void *entity)
Meaning
Runs a map entity's fog slot, then its light slot when its view depth less twice its radius is under the fog end
Confidence
verified, proof one
Finding
terrain/render#chunk-light-slots
Test
terrain::vtable_pred_dispatch_second_difftest

Finding: Chunk light slots in terrain: render

0x6c0cc0 runs two slots of the chunk's class. Slot 1 (0x6c31e0) always sets the fog. Slot 2 (0x6af9f0) adds lights, only when the chunk's view depth less twice its radius is under the fog end 0xc62964 (0x6c0cce, 0x6c0cd4). It clears bit 0 of the chunk's word +0xc, adds the global exterior light block 0xc89ef0 + 0x7c, then each map light on the chunk's list (+0x100 stride, +0x108 head) whose object +0xdc is not zero, adding the light embedded at +0x7c. So placed map lights and model lights compete for the four nearest.

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.