benilla-re systems structs docs

s_chunkUnitTexCoords

global · terrain

Address
0xcac3c8 · 1160 bytes, up to 0xcac84f
Type
float[290]
Meaning
Holds each chunk vertex's texture coordinate in [0, 1]
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.