benilla-re systems structs docs

CChunkLiquid::DrawMagma

function · terrain · orchestration

Address
0x68dca0 · 401 bytes, up to 0x68de30
Signature
void __thiscall (CChunkLiquid *this, uint32_t unused)
Meaning
Draws a liquid's magma tiles with the current lava frame
Confidence
verified, proof one
Finding
terrain/liquid#liquid-render-passes
Test
terrain::liquid_pass_anim_frame_difftest

Finding: Liquid render passes in terrain: liquid

0x68de40(pass) draws a liquid: pass 0 is the river, pass 1 the ocean and pass 2 magma, after making the liquid's buffers when it has none and creating the pass's ramp texture once. Each pass binds the current frame of type 4, 1 or 6, refills the vertices and the strips of tile type 4, 1 or 6 when the buffers are fresh, and draws the strip with the 40-byte vertex format. Tiles of any other type are never drawn by these passes.

The derivation is in the doc.

Callers 1

Callees 14

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