Cube
This is a WIP project - Expect breaking changes to occur.
Overview
A simple Cube mesh with 8 vertices and 12 triangles. Each face of the cube has a different color for demonstration purposes.
The Cube is centered at the origin and has a size of 1 unit in each dimension.
The vertices are defined in a counter-clockwise order to ensure correct face culling.
In our setup, we have: The colors are assigned based on the face they belong to:
- Front face is yellow
- Back face is cyan
- Left face is magenta
- Right face is blue
- Top face is green
- Bottom face is white
Last updated on