瀏覽代碼

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 ) {
 
-			const cols = Math.pow( 2, detail );
+			const cols = detail + 1;
 
 			// we use this multidimensional array as a data structure for creating the subdivision