benilla-re systems structs docs

s_chunkLevelBatches

global · terrain

Address
0xca8308 · 128 bytes, up to 0xca8387
Type
uint32_t[32]
Meaning
Holds the four levels' static draw batches of 32 bytes
Confidence
verified, proof one
Finding
terrain/lod#chunk-mesh-tables

Finding: Chunk mesh tables in terrain: lod

At start-up 0x6aef50 builds the 145-entry texture coordinate tables in the vertices' order: at 0xcac860 an outer vertex (j, i) gets (i, j) and an inner one (i + 0.5, j + 0.5); at 0xcac3c8 the same over 8, in [0, 1]. It then fills, for each of the four levels, remapped copies of both tables and the level's batch descriptor from the static index lists at 0x86b540.

The derivation is in the doc.