浏览代码

fixed UV flip

ncannasse 10 年之前
父节点
当前提交
2abd005ec2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/prim/Sphere.hx

+ 1 - 1
h3d/prim/Sphere.hx

@@ -46,7 +46,7 @@ class Sphere extends Polygon {
 		uvs = [];
 		for( y in 0...segsH + 1 )
 			for( x in 0...segsW + 1 )
-				uvs.push(new UV(x / segsW, y / segsH));
+				uvs.push(new UV(1 - x / segsW, y / segsH));
 	}
 
 }