Created
June 25, 2019 09:11
-
-
Save SelvamArul/6c5cf8be6440b9f41754d195eccd300f to your computer and use it in GitHub Desktop.
Unit cube with per vertex coloring.
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
# | |
# cube with per vertex coloring. | |
# | |
v 0.0 0.0 0.0 255 0 0 | |
v 0.0 0.0 1.0 255 0 0 | |
v 0.0 1.0 0.0 255 0 0 | |
v 0.0 1.0 1.0 255 0 0 | |
v 1.0 0.0 0.0 255 0 0 | |
v 1.0 0.0 1.0 255 0 0 | |
v 1.0 1.0 0.0 255 0 0 | |
v 1.0 1.0 1.0 255 0 0 | |
vn 0.0 0.0 1.0 | |
vn 0.0 0.0 -1.0 | |
vn 0.0 1.0 0.0 | |
vn 0.0 -1.0 0.0 | |
vn 1.0 0.0 0.0 | |
vn -1.0 0.0 0.0 | |
f 1//2 7//2 5//2 | |
f 1//2 3//2 7//2 | |
f 1//6 4//6 3//6 | |
f 1//6 2//6 4//6 | |
f 3//3 8//3 7//3 | |
f 3//3 4//3 8//3 | |
f 5//5 7//5 8//5 | |
f 5//5 8//5 6//5 | |
f 1//4 5//4 6//4 | |
f 1//4 6//4 2//4 | |
f 2//1 6//1 8//1 | |
f 2//1 8//1 4//1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment