Browse Source

Bottom mapping ok from outside

rfm1201 9 năm trước cách đây
mục cha
commit
ee6d2900c0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/extras/geometries/CylinderBufferGeometry.js

+ 1 - 1
src/extras/geometries/CylinderBufferGeometry.js

@@ -273,7 +273,7 @@ THREE.CylinderBufferGeometry = function( radiusTop, radiusBottom, height, radial
 
 			// uv
 			uv.x = ( cosTheta * 0.5 ) + 0.5;
-			uv.y = ( sinTheta * 0.5 ) + 0.5;
+			uv.y = ( sinTheta * 0.5 * sign ) + 0.5;
 			uvs.setXY( index, uv.x, uv.y );
 
 			// increase index