Skip to main content

import_heightmap

Function import_heightmap 

Source
pub fn import_heightmap(
    heights: &[f32],
    width: usize,
    depth: usize,
    max_height: usize,
    material_surface: u8,
    material_subsurface: u8,
    material_base: u8,
) -> VoxelGrid
Expand description

Import heightmap (2D array of heights) and extrude to 3D.