Browse Source

Flipped cube primitive face winding, so the faces are oriented outside.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
3a96420cb4
  1. 24
      src/Primitives/Cube.cpp

24
src/Primitives/Cube.cpp

@ -20,18 +20,18 @@ using namespace std;
namespace Magnum { namespace Primitives { namespace Magnum { namespace Primitives {
Cube::Cube(): MeshData(Mesh::Primitive::Triangles, new vector<unsigned int>{ Cube::Cube(): MeshData(Mesh::Primitive::Triangles, new vector<unsigned int>{
0, 1, 2, 0, 2, 1,
2, 1, 3, 2, 3, 1,
1, 5, 3, 1, 3, 5,
3, 5, 7, 3, 7, 5,
5, 4, 7, 5, 7, 4,
7, 4, 6, 7, 6, 4,
4, 0, 6, 4, 6, 0,
6, 0, 2, 6, 2, 0,
2, 3, 7, 2, 7, 3,
2, 7, 6, 2, 6, 7,
4, 5, 1, 4, 1, 5,
4, 1, 0 4, 0, 1
}, {new vector<Vector4>}, {new vector<Vector3>{ }, {new vector<Vector4>}, {new vector<Vector3>{
{-1.0f, -1.0f, -1.0f}, {-1.0f, -1.0f, -1.0f},
{ 1.0f, -1.0f, -1.0f}, { 1.0f, -1.0f, -1.0f},

Loading…
Cancel
Save