benilla-re systems structs docs

DrawChunkPass

function · terrain · orchestration

Address
0x684510 · 810 bytes, up to 0x684839
Signature
void __cdecl (void)
Meaning
Draws the chunk draw list with each chunk's transform and lights
Confidence
verified, proof one
Finding
terrain/render#chunk-draw-pass
Test
terrain::chunk_cam_relative_delta_difftest

Finding: Chunk draw pass in terrain: render

0x684510 draws the frame's chunk list 0xc7cad8 in order. For each chunk it sets the transform to the chunk position less the camera, picks the lights of the chunk as a whole, draws the mesh through 0x6beb50 and resets the chunk's idle time. Lights are chosen once per chunk, at the centre of its box, with its bounding radius as the search radius; nothing below the chunk looks at a light again.

The derivation is in the doc.

Callers 1

Callees 17

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