소스 검색

Removed computeFaceNormals() references.

Mr.doob 4 년 전
부모
커밋
0e2a67b7c9
3개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 2
      examples/webgl_geometry_terrain_raycast.html
  2. 0 6
      test/unit/src/core/BufferGeometry.tests.js
  3. 0 2
      test/unit/src/geometries/EdgesGeometry.tests.js

+ 0 - 2
examples/webgl_geometry_terrain_raycast.html

@@ -86,8 +86,6 @@
 
 				}
 
-				geometry.computeFaceNormals(); // needed for helper
-
 				//
 
 				texture = new THREE.CanvasTexture( generateTexture( data, worldWidth, worldDepth ) );

+ 0 - 6
test/unit/src/core/BufferGeometry.tests.js

@@ -364,12 +364,6 @@ export default QUnit.module( 'Core', () => {
 
 		} );
 
-		QUnit.todo( "computeFaceNormals", ( assert ) => {
-
-			assert.ok( false, "everything's gonna be alright" );
-
-		} );
-
 		QUnit.test( "computeVertexNormals", ( assert ) => {
 
 			// get normals for a counter clockwise created triangle

+ 0 - 2
test/unit/src/geometries/EdgesGeometry.tests.js

@@ -85,8 +85,6 @@ function createIndexedBufferGeometry( vertList, idxList ) {
 	geom.setIndex( new BufferAttribute( indices, 1 ) );
 	geom.setAttribute( 'position', new BufferAttribute( vertices, 3 ) );
 
-	geom.computeFaceNormals();
-
 	return geom;
 
 }

粤ICP备19079148号