浏览代码

fixed the cube default tcoords so there is less flip

Nicolas Cannasse 11 年之前
父节点
当前提交
122618f035
共有 1 个文件被更改,包括 6 次插入6 次删除
  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,