CMapChunk::FillLodVertices
function · terrain · primitive
- Address
0x6bee20· 103 bytes, up to0x6bee86- Signature
void __thiscall (CMapChunk *this, void *buffer)- Meaning
- Copies all 145 vertices of a chunk into the locked buffer for a built mesh
- Confidence
- verified, proof one
- Finding
- terrain/lod#chunk-mesh-rebuild
Finding: Chunk mesh rebuild in terrain: lod
A chunk whose buffers are not filled gets its mesh when it is drawn. With no neighbour bit in the key and a
zero hole word it copies the static lists of its level. Any other chunk builds its own indices with
0x6c51b0 over all 145 vertices, a triangle list. With the draw argument set the pass then draws the
level's static batch or the chunk's built one.
The derivation is in the doc.
Callers 1
- CMapChunk::SelectMesh terrain
Callees 2
- GxBufLock gx
- GxBufUnlock gx
Calls and jumps by a bare address, from tables/calls.tsv.