Advertisement
Guest User

Untitled

a guest
Jun 14th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. float voxel_vertices[] = {
  2. //front
  3. 0.0f, 1.0f, 0.0f,
  4. 0.0f, 0.0f, 0.0f,
  5. 1.0f, 1.0f, 0.0f,
  6. 1.0f, 1.0f, 0.0f,
  7. 0.0f, 0.0f, 0.0f,
  8. 1.0f, 0.0f, 0.0f,
  9.  
  10. //back
  11. 0.0f, 1.0f, -1.0f,
  12. 0.0f, 0.0f, -1.0f,
  13. 1.0f, 1.0f, -1.0f,
  14. 1.0f, 1.0f, -1.0f,
  15. 0.0f, 0.0f, -1.0f,
  16. 1.0f, 0.0f, -1.0f,
  17.  
  18. //left
  19. 0.0f, 1.0f, -1.0f,
  20. 0.0f, 0.0f, -1.0f,
  21. 0.0f, 1.0f, 0.0f,
  22. 0.0f, 1.0f, 0.0f,
  23. 0.0f, 0.0f, -1.0f,
  24. 0.0f, 0.0f, 0.0f,
  25.  
  26. //right
  27. 1.0f, 1.0f, -1.0f,
  28. 1.0f, 0.0f, -1.0f,
  29. 1.0f, 1.0f, 0.0f,
  30. 1.0f, 1.0f, 0.0f,
  31. 1.0f, 0.0f, -1.0f,
  32. 1.0f, 0.0f, 0.0f,
  33.  
  34. //top
  35. 0.0f, 1.0f, -1.0f,
  36. 0.0f, 1.0f, 0.0f,
  37. 1.0f, 1.0f, -1.0f,
  38. 1.0f, 1.0f, -1.0f,
  39. 0.0f, 1.0f, 0.0f,
  40. 1.0f, 1.0f, 0.0f,
  41.  
  42. //bottom
  43. 0.0f, 0.0f, -1.0f,
  44. 0.0f, 0.0f, 0.0f,
  45. 1.0f, 0.0f, -1.0f,
  46. 1.0f, 0.0f, -1.0f,
  47. 0.0f, 0.0f, 0.0f,
  48. 1.0f, 0.0f, 0.0f
  49. };
  50.  
  51. float voxel_uvs[] = {
  52. //front
  53. 0.0f, 0.0f,
  54. 0.0f, 1.0f,
  55. 1.0f, 0.0f,
  56. 1.0f, 0.0f,
  57. 0.0f, 1.0f,
  58. 1.0f, 1.0f,
  59.  
  60. //back
  61. 0.0f, 0.0f,
  62. 0.0f, 1.0f,
  63. 1.0f, 0.0f,
  64. 1.0f, 0.0f,
  65. 0.0f, 1.0f,
  66. 1.0f, 1.0f,
  67.  
  68. //left
  69. 0.0f, 0.0f,
  70. 0.0f, 1.0f,
  71. 1.0f, 0.0f,
  72. 1.0f, 0.0f,
  73. 0.0f, 1.0f,
  74. 1.0f, 1.0f,
  75.  
  76. //right
  77. 0.0f, 0.0f,
  78. 0.0f, 1.0f,
  79. 1.0f, 0.0f,
  80. 1.0f, 0.0f,
  81. 0.0f, 1.0f,
  82. 1.0f, 1.0f,
  83.  
  84. //top
  85. 0.0f, 0.0f,
  86. 0.0f, 1.0f,
  87. 1.0f, 0.0f,
  88. 1.0f, 0.0f,
  89. 0.0f, 1.0f,
  90. 1.0f, 1.0f,
  91.  
  92. //bottom
  93. 0.0f, 0.0f,
  94. 0.0f, 1.0f,
  95. 1.0f, 0.0f,
  96. 1.0f, 0.0f,
  97. 0.0f, 1.0f,
  98. 1.0f, 1.0f
  99. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement