benilla-re systems structs docs

s_meshKeyNeighbourMask

global · terrain

Address
0x86c2e0 · 4 bytes, up to 0x86c2e3
Type
uint32_t
Meaning
Holds 0xfff0ffff, the key bits other than the level's that force a chunk's own 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.