benilla-re systems structs docs

DrawMapObjectPass

function · terrain · orchestration

Address
0x684840 · 1166 bytes, up to 0x684ccd
Signature
void __cdecl (void)
Meaning
Draws the linked map object groups under each def's lighting, once per stored frustum volume
Confidence
verified, proof one
Finding
terrain/groupdraw#map-object-pass
Test
terrain::wmo_pass_negate_difftest

Finding: Map object pass in terrain: map object draw

0x684840 draws the groups the frame linked in the list 0xc7caf8. For each group def it unlinks the def's node, and with world flag 0x100 set it sets matrix slot 8 to the translation by minus the camera times the instance matrix +0x94, sets the group fog flag, builds the def's lighting record, calls its two virtual slots, finishes the lighting at the camera and draws the group once for each frustum volume the def holds. It releases the volumes in every case.

The derivation is in the doc.

Callers 1

Callees 22

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