BuildLiquidCellStrip
function · terrain · primitive
- Address
0x6b61a0· 313 bytes, up to0x6b62d8- Signature
uint32_t __thiscall (void *this, uint32_t holes, uint16_t *out, uint32_t a, uint32_t b)- Meaning
- Writes the triangle strip of a group liquid's tiles that hold liquid
- Confidence
- verified, proof one
- Finding
- terrain/groupdraw#group-liquid-mesh
- Test
terrain::hole_strip_indices
Finding: Group liquid mesh in terrain: map object draw
A liquid is a grid of (columns × rows) vertices (+0xf8, +0xfc) with cells of 4.1666665 yards from the
origin +0x108, +0x10c. The vertex data (+0x118, 8 bytes each) holds a depth byte and the height at
+0x4 (water) or two signed 16-bit coordinates and the height (magma). The tile bytes (+0x11c) hold
the type nibble, 0xf for no liquid. The strip skips a tile of type 0xf and, when bit 7 of its byte
is set, a tile unless the parity flag is set.
The derivation is in the doc.
Callers 3
- DrawInteriorGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- DrawGroupMagma terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.