Skip to main content

cube

Function cube 

Source
pub fn cube() -> RawMesh
Expand description

A unit cube centred at the origin, returned as (positions, uvs, colors, indices).

The colors are quantized to the Unorm8x4 width the vertex stream stores, exactly as the tests uploaded them.