benilla-re systems structs docs

CChunkLiquid::FillMagmaVertices

function · terrain · primitive

Address
0x68d890 · 285 bytes, up to 0x68d9ac
Signature
void __thiscall (CChunkLiquid *this, void *dst)
Meaning
Writes 81 render vertices with each vertex's two words times 3/256 as a coordinate
Confidence
verified, proof one
Finding
terrain/liquid#liquid-render-vertices
Test
terrain::liquid_render_verts_fill

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.