Explorar o código

fixed UV flip

ncannasse %!s(int64=10) %!d(string=hai) anos
pai
achega
2abd005ec2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
 	}
 
 }