DrawExteriorGroupLiquid
function · terrain · host
- Address
0x6b6630· 689 bytes, up to0x6b68e0- Signature
void __fastcall (void *group, uint32_t unused, uint32_t arg3, uint32_t arg4)- Meaning
- Builds and draws an exterior group's water mesh with the scene's water colour
- Confidence
- verified, proof one
- Finding
- terrain/groupdraw#group-liquid-mesh
- Test
terrain::mliq_build_advance_x_difftest,terrain::mliq_build_advance_y_difftest
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 1
- DrawGroupLiquid terrain
Callees 14
- NTempest::CImVector::Set ui
- GxRsSetWord gx
- GxRsSetFloat gx
- GxRsSetObject gx
- GxBufLock gx
- GxBufUnlock gx
- GxBufCreate gx
- GxDeviceCaps gx
- GxVertexBufBind gx
- PassBufferToDevice gx
- GxPrimRenderOne gx
- GxShaderIsLoaded gx
- BuildLiquidCellStrip terrain
- GetLightState lighting
Calls and jumps by a bare address, from tables/calls.tsv.