benilla-re systems structs docs

CChunkLiquid::FillRiverVertices

function · terrain · primitive

Address
0x68d790 · 246 bytes, up to 0x68d885
Signature
void __thiscall (CChunkLiquid *this, void *dst)
Meaning
Writes 81 render vertices with the A ramp of each vertex's depth byte
Confidence
verified, proof one
Finding
terrain/liquid#liquid-render-vertices
Test
terrain::mclq_verts_a

Finding: Liquid render vertices in terrain: liquid

The liquid's vertex buffer holds 81 vertices of 40 bytes: the position, the normal (0, 0, 1), a first texture coordinate and a second (i·0.25, j·0.25). For the ocean pass the first is (0.5, B[d]) and for the river pass (0.5, A[d]), d being the MCLQ vertex's first byte; for the magma pass it is the vertex's first two words times 3/256.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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