CChunkLiquid::FillOceanVertices
function · terrain · primitive
- Address
0x68d690· 246 bytes, up to0x68d785- Signature
void __thiscall (CChunkLiquid *this, void *dst)- Meaning
- Writes 81 render vertices with the B ramp of each vertex's depth byte
- Confidence
- verified, proof one
- Finding
- terrain/liquid#liquid-render-vertices
- Test
terrain::mclq_verts_b
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
- CChunkLiquid::DrawOcean terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.