Created
April 17, 2018 23:50
-
-
Save jackmott/6e06daa504b070da1ce1ec580e4af59b to your computer and use it in GitHub Desktop.
vertices for opengl cube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vertices := []float32{ | |
-0.5, -0.5, -0.5, 0.0, 0.0, | |
0.5, -0.5, -0.5, 1.0, 0.0, | |
0.5, 0.5, -0.5, 1.0, 1.0, | |
0.5, 0.5, -0.5, 1.0, 1.0, | |
-0.5, 0.5, -0.5, 0.0, 1.0, | |
-0.5, -0.5, -0.5, 0.0, 0.0, | |
-0.5, -0.5, 0.5, 0.0, 0.0, | |
0.5, -0.5, 0.5, 1.0, 0.0, | |
0.5, 0.5, 0.5, 1.0, 1.0, | |
0.5, 0.5, 0.5, 1.0, 1.0, | |
-0.5, 0.5, 0.5, 0.0, 1.0, | |
-0.5, -0.5, 0.5, 0.0, 0.0, | |
-0.5, 0.5, 0.5, 1.0, 0.0, | |
-0.5, 0.5, -0.5, 1.0, 1.0, | |
-0.5, -0.5, -0.5, 0.0, 1.0, | |
-0.5, -0.5, -0.5, 0.0, 1.0, | |
-0.5, -0.5, 0.5, 0.0, 0.0, | |
-0.5, 0.5, 0.5, 1.0, 0.0, | |
0.5, 0.5, 0.5, 1.0, 0.0, | |
0.5, 0.5, -0.5, 1.0, 1.0, | |
0.5, -0.5, -0.5, 0.0, 1.0, | |
0.5, -0.5, -0.5, 0.0, 1.0, | |
0.5, -0.5, 0.5, 0.0, 0.0, | |
0.5, 0.5, 0.5, 1.0, 0.0, | |
-0.5, -0.5, -0.5, 0.0, 1.0, | |
0.5, -0.5, -0.5, 1.0, 1.0, | |
0.5, -0.5, 0.5, 1.0, 0.0, | |
0.5, -0.5, 0.5, 1.0, 0.0, | |
-0.5, -0.5, 0.5, 0.0, 0.0, | |
-0.5, -0.5, -0.5, 0.0, 1.0, | |
-0.5, 0.5, -0.5, 0.0, 1.0, | |
0.5, 0.5, -0.5, 1.0, 1.0, | |
0.5, 0.5, 0.5, 1.0, 0.0, | |
0.5, 0.5, 0.5, 1.0, 0.0, | |
-0.5, 0.5, 0.5, 0.0, 0.0, | |
-0.5, 0.5, -0.5, 0.0, 1.0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment