benilla-re systems structs docs

s_quadChildColumn

global · terrain

Address
0x8111cc · 48 bytes, up to 0x8111fb
Type
int32_t[12]
Meaning
Holds the column offsets of a quadtree node's four children at depth 0 to 2
Confidence
verified, proof one
Finding
terrain/lod#chunk-index-building

Finding: Chunk index building in terrain: lod

0x6c51b0(depth, level, caps, holes, column, row) builds a chunk's triangle list by a walk down a quadtree of the 8 × 8 quads, from depth 0 at the centre (4, 4) to the leaves at the chunk's level, and writes 16-bit indices through the cursor 0xcac3ac. A leaf is a cell of four triangles around its centre, twelve indices; a hole bit drops the cell. Level 3 leaves are single quads, level 2 leaves cells of 2 × 2 quads.

The derivation is in the doc.