s_halfChunkSize
global · terrain
- Address
0x810e20· 4 bytes, up to0x810e23- Type
float- Meaning
- Holds 16.666666 (0x41855555), half a chunk
- Confidence
- verified, proof one
- Finding
- terrain/lod#low-detail-mesh
Finding: Low-detail mesh in terrain: lod
A CMapAreaLow fills a 545-vertex buffer of 16-byte vertices (x, y, z, 0xffffffff): 17 rows of
17 outer vertices, then 16 rows of 16 inner ones. An outer vertex's x is the tile's X less 33.333332
for each row and its y the tile's Y less 33.333332 for each column, each by repeated subtraction
at 53 bits; inner ones start 16.666666 in. The height is the WDL value. Each of the 16×16 quads is
four triangles around its inner vertex C: (C, v+1, v), (C, v+18, v+1), (C, v+17, v+18) and
(C, v, v+17), v the quad's first outer vertex.
The derivation is in the doc.