소스 검색

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));
 	}
 
 }