فهرست منبع

PolyhedronGeometry: more fine-tuned picking of level of detail

felixmariotto 4 سال پیش
والد
کامیت
022cc558f1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/geometries/PolyhedronGeometry.js

+ 1 - 1
src/geometries/PolyhedronGeometry.js

@@ -109,7 +109,7 @@ class PolyhedronBufferGeometry extends BufferGeometry {
 
 
 		function subdivideFace( a, b, c, detail ) {
 		function subdivideFace( a, b, c, detail ) {
 
 
-			const cols = Math.pow( 2, detail );
+			const cols = detail + 1;
 
 
 			// we use this multidimensional array as a data structure for creating the subdivision
 			// we use this multidimensional array as a data structure for creating the subdivision