Browse Source

fixed UV flip

ncannasse 10 years ago
parent
commit
2abd005ec2
1 changed files with 1 additions and 1 deletions
  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));
 	}
 
 }