mirror of https://github.com/bjornbytes/lovr.git
Fix cube winding;
This commit is contained in:
parent
66836b4d3a
commit
7e58e265d6
|
@ -779,32 +779,32 @@ void lovrGraphicsBox(DrawMode mode, Material* material, mat4 transform) {
|
|||
float data[] = {
|
||||
// Front
|
||||
-.5, -.5, -.5, 0, 0, -1, 0, 0,
|
||||
.5, -.5, -.5, 0, 0, -1, 1, 0,
|
||||
-.5, .5, -.5, 0, 0, -1, 0, 1,
|
||||
.5, -.5, -.5, 0, 0, -1, 1, 0,
|
||||
.5, .5, -.5, 0, 0, -1, 1, 1,
|
||||
|
||||
// Right
|
||||
.5, .5, -.5, 1, 0, 0, 0, 1,
|
||||
.5, -.5, -.5, 1, 0, 0, 0, 0,
|
||||
.5, .5, .5, 1, 0, 0, 1, 1,
|
||||
.5, -.5, -.5, 1, 0, 0, 0, 0,
|
||||
.5, -.5, .5, 1, 0, 0, 1, 0,
|
||||
|
||||
// Back
|
||||
.5, -.5, .5, 0, 0, 1, 0, 0,
|
||||
-.5, -.5, .5, 0, 0, 1, 1, 0,
|
||||
.5, .5, .5, 0, 0, 1, 0, 1,
|
||||
-.5, -.5, .5, 0, 0, 1, 1, 0,
|
||||
-.5, .5, .5, 0, 0, 1, 1, 1,
|
||||
|
||||
// Left
|
||||
-.5, .5, .5, -1, 0, 0, 0, 1,
|
||||
-.5, -.5, .5, -1, 0, 0, 0, 0,
|
||||
-.5, .5, -.5, -1, 0, 0, 1, 1,
|
||||
-.5, -.5, .5, -1, 0, 0, 0, 0,
|
||||
-.5, -.5, -.5, -1, 0, 0, 1, 0,
|
||||
|
||||
// Bottom
|
||||
-.5, -.5, -.5, 0, -1, 0, 0, 0,
|
||||
-.5, -.5, .5, 0, -1, 0, 0, 1,
|
||||
.5, -.5, -.5, 0, -1, 0, 1, 0,
|
||||
-.5, -.5, .5, 0, -1, 0, 0, 1,
|
||||
.5, -.5, .5, 0, -1, 0, 1, 1,
|
||||
|
||||
// Adjust
|
||||
|
@ -813,8 +813,8 @@ void lovrGraphicsBox(DrawMode mode, Material* material, mat4 transform) {
|
|||
|
||||
// Top
|
||||
-.5, .5, -.5, 0, 1, 0, 0, 1,
|
||||
.5, .5, -.5, 0, 1, 0, 1, 1,
|
||||
-.5, .5, .5, 0, 1, 0, 0, 0,
|
||||
.5, .5, -.5, 0, 1, 0, 1, 1,
|
||||
.5, .5, .5, 0, 1, 0, 1, 0
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue