Explorar o código

PolyhedronGeometry: more fine-tuned picking of level of detail

felixmariotto %!s(int64=5) %!d(string=hai) anos
pai
achega
022cc558f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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