Skip to content

Instantly share code, notes, and snippets.

@SelvamArul
Created July 24, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SelvamArul/f39418284a39e0b58d920fe7988d2612 to your computer and use it in GitHub Desktop.
Save SelvamArul/f39418284a39e0b58d920fe7988d2612 to your computer and use it in GitHub Desktop.
cube with per vertex coloring and 8 Unique vertices.
#
# NOTE: Don't use this unless you know what it is meant for.
# cube with per vertex coloring and 8 Unique vertices.
# a vertex is considered unique if it has all its attributes unique, not just the position.
#
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//5
f 1//2 3//3 7//2
f 1//2 4//6 3//3
f 1//2 2//1 4//6
f 3//3 8//3 7//2
f 3//3 4//6 8//3
f 5//5 7//2 8//3
f 5//5 8//3 6//4
f 1//2 5//5 6//4
f 1//2 6//4 2//1
f 2//1 6//4 8//3
f 2//1 8//3 4//6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment