Skip to content

Instantly share code, notes, and snippets.

@pandr
Created November 7, 2019 17:04
Show Gist options
  • Save pandr/916c03fd003ab7c43d75db5bc6f5a2bb to your computer and use it in GitHub Desktop.
Save pandr/916c03fd003ab7c43d75db5bc6f5a2bb to your computer and use it in GitHub Desktop.
var meshBox = {
verts : [
v(-0.5,-0.5,-0.5), v(0.5,-0.5,-0.5), v(0.5,0.5,-0.5), v(-0.5,0.5,-0.5), // front
v(-0.5,-0.5,0.5), v(0.5,-0.5,0.5), v(0.5,0.5,0.5), v(-0.5,0.5,0.5), // back
],
tris : [
0,1,2, 2,3,0, // front
4,5,6, 6,7,4, // back
0,3,4, 4,3,7, // left
1,2,5, 5,6,2, // right
0,1,5, 5,4,0, // bottom
2,3,7, 7,6,2, // top
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment