benilla-re systems structs docs

DrawGroupLiquidPass

function · terrain · host

Address
0x684cd0 · 825 bytes, up to 0x685008
Signature
void __cdecl (void)
Meaning
Draws the map object groups' liquids under each def's fog and lights, with matrix 8 set to the object
Confidence
verified, proof one
Finding
terrain/liquidpass#group-liquid-pass
Test
terrain::wmo_liquid_pass_negate_difftest

Finding: Group liquid pass in terrain: liquid passes

0x684cd0 draws the liquids of the map object groups in the frame's list (0xc7cafc). It builds the interior alpha ramp 0x6b6b60 when the list is not empty. For each group def it unlinks the node +0xd4, and with world flag 0x100 set it sets matrix 8 to the camera translation times the map object's matrix +0x94, makes a lighting record at the def, calls the def's fog and light slots, finishes at the camera and has the map object draw the group's liquid.

The derivation is in the doc.

Callers 1

Callees 12

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