Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const vertexPositions = [
- // Front
- -1, 1, -1,
- -1, -1, -1,
- 1, -1, -1,
- 1, 1, -1,
- // Back
- 1, 1, 1,
- 1, -1, 1,
- -1, -1, 1,
- -1, 1, 1,
- // Left
- -1, 1, 1,
- -1, -1, 1,
- -1, -1, -1,
- -1, 1, -1,
- // Right
- 1, 1, -1,
- 1, -1, -1,
- 1, -1, 1,
- 1, 1, 1,
- // Top
- -1, 1, 1,
- -1, 1, -1,
- 1, 1, -1,
- 1, 1, 1,
- // Bottom
- -1, -1, -1,
- -1, -1, 1,
- 1, -1, 1,
- 1, -1, -1
- ];
- const textureCoordinates = [
- // Front
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1,
- // Back
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1,
- // Left
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1,
- // Right
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1,
- // Bottom
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1,
- // Top
- 0, 1,
- 0, 0,
- 1, 0,
- 1, 1
- ];
- const indices = [
- // Front
- 0, 1, 2,
- 2, 3, 0,
- // Back
- 4, 5, 6,
- 6, 7, 4,
- // Left
- 8, 9, 10,
- 10, 11, 8,
- // Right
- 12, 13, 14,
- 14, 15, 12,
- // Top
- 16, 17, 18,
- 18, 19, 16,
- // Bottom
- 20, 21, 22,
- 22, 23, 20
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement