Skip to main content

water_mesh

Function water_mesh 

Source
pub fn water_mesh(
    paths: &[Vec<PathPoint>],
    lakes: &[[f32; 3]],
    heights: &[i16],
    size: usize,
) -> WaterMesh
Expand description

The water mesh of a generated map. paths and lakes are the generator’s, heights is the map’s (size + 1)² height grid, and size is its size in cells.

Original: FUN_1400b0730.