Skip to main content

grid_mesh

Function grid_mesh 

Source
pub fn grid_mesh(name: &str, size_x: f32, size_z: f32, segments: u32) -> Mesh
Expand description

Subdivided terrain grid centred on the origin, lying on the XZ plane at y = 0 with normals pointing up. Shared vertices (indexed), so brushes deform the surface without seams.