benilla-re systems structs docs

CChunkLiquid::Draw

function · terrain · orchestration

Address
0x68de40 · 253 bytes, up to 0x68df3c
Signature
void __thiscall (CChunkLiquid *this, uint32_t pass)
Meaning
Draws a liquid through its river, ocean or magma pass, making its buffers when needed
Confidence
verified, proof one
Finding
terrain/liquid#liquid-render-passes
Test
terrain::liquid_lazy_init_scalar_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 3

Callees 8

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