浏览代码

Update webgl_lod example

Takahiro 6 年之前
父节点
当前提交
3d06bc0f21
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      examples/webgl_lod.html

+ 0 - 12
examples/webgl_lod.html

@@ -74,7 +74,6 @@
 
 				scene = new THREE.Scene();
 				scene.fog = new THREE.Fog( 0x000000, 1, 15000 );
-				scene.autoUpdate = false;
 
 				var light = new THREE.PointLight( 0xff2200 );
 				light.position.set( 0, 0, 0 );
@@ -153,17 +152,6 @@
 
 				controls.update( clock.getDelta() );
 
-				scene.updateMatrixWorld();
-				scene.traverse( function ( object ) {
-
-					if ( object instanceof THREE.LOD ) {
-
-						object.update( camera );
-
-					}
-
-				} );
-
 				renderer.render( scene, camera );
 
 			}