benilla-re systems structs docs

CMapChunk::FillLodIndices

function · terrain · orchestration

Address
0x6bee90 · 151 bytes, up to 0x6bef26
Signature
void __thiscall (CMapChunk *this, void *buffer)
Meaning
Uploads a chunk's built indices and stores their range in the chunk's draw batch
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

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.