Ver código fonte

fixed UV flip

ncannasse 10 anos atrás
pai
commit
2abd005ec2
1 arquivos alterados com 1 adições e 1 exclusões
  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));
 	}
 
 }