Преглед изворни кода

Compute flat normals when detail is zero

WestLangley пре 9 година
родитељ
комит
5c521f8da5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/geometries/PolyhedronGeometry.js

+ 1 - 1
src/geometries/PolyhedronGeometry.js

@@ -77,7 +77,7 @@ function PolyhedronBufferGeometry( vertices, indices, radius, detail ) {
 
 	if ( detail === 0 ) {
 
-		BufferGeometry.prototype.computeVertexNormals.call( this ); // flat normals
+		this.computeVertexNormals(); // flat normals
 
 	} else {
 

粤ICP备19079148号