Skip to main content

Module renderer

Module renderer 

Source

Structs§

TerrainDrawList
Chunks to draw this frame, sorted by level of detail.
TerrainRenderer
CPU-side terrain renderer. Holds the shared texture arrays (one heightmap array, SPLAT_MAPS splat map arrays), the dirty queue forwarded to the GPU each frame, and the chunks to draw.

Constants§

TERRAIN_LOD_COUNT
Number of mesh levels of detail: level k has CHUNK_RENDER_SUBDIVISIONS >> k quads per side.