Skip to main content

generate_box

Function generate_box 

Source
pub fn generate_box(width: f32, height: f32, depth: f32) -> MeshBuffers
Expand description

Generates a 3D Box (cube) with distinct face normals (24 vertices, 36 indices).