Browse Source

fixed the cube default tcoords so there is less flip

Nicolas Cannasse 11 years ago
parent
commit
122618f035
1 changed files with 6 additions and 6 deletions
  1. 6 6
      h3d/prim/Cube.hx

+ 6 - 6
h3d/prim/Cube.hx

@@ -34,18 +34,18 @@ class Cube extends Polygon {
 	override function addUVs() {
 		unindex();
 
-		var z = new UV(0, 0);
-		var x = new UV(1, 0);
-		var y = new UV(0, 1);
-		var o = new UV(1, 1);
+		var z = new UV(0, 1);
+		var x = new UV(1, 1);
+		var y = new UV(0, 0);
+		var o = new UV(1, 0);
 
 		uvs = [
 			z, x, o,
 			z, o, y,
 			x, z, y,
 			x, y, o,
-			z, x, o,
-			z, o, y,
+			x, z, y,
+			x, y, o,
 			z, o, x,
 			z, y, o,
 			x, y, z,