Skip to main content

cuboid_mesh

Function cuboid_mesh 

Source
pub fn cuboid_mesh(half: Vec3) -> OwnedLitMeshDesc
Expand description

An axis-aligned cuboid from its half extents: 24 vertices (four per face, so each face has clean uvs) and 36 indices, wound CCW as seen from outside.