Skip to main content

build_debug_mesh

Function build_debug_mesh 

Source
pub fn build_debug_mesh(
    chunks: &[Chunk],
    radius: f32,
    chunk_res: u32,
) -> DebugMeshData
Expand description

Realize the selected chunks into a per-LOD-coloured triangle soup. Each chunk becomes chunk_res×chunk_res triangles all carrying the chunk’s LOD colour.