From 7e58e265d6c754481de149a558412045260195f8 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 3 Mar 2018 17:19:12 -0800 Subject: [PATCH] Fix cube winding; --- src/graphics/graphics.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index 39229002..72f7cdf2 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -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 };