浏览代码

Examples: Clean up

Mugen87 7 年之前
父节点
当前提交
f7b672c42e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/webaudio_orientation.html

+ 2 - 2
examples/webaudio_orientation.html

@@ -123,7 +123,7 @@
 
 		//
 
-		light = new THREE.HemisphereLight( 0xffffff, 0x444444 );
+		var light = new THREE.HemisphereLight( 0xffffff, 0x444444 );
 		light.position.set( 0, 200, 0 );
 		scene.add( light );
 
@@ -172,7 +172,7 @@
 		var gltfLoader = new THREE.GLTFLoader();
 		gltfLoader.load( 'models/gltf/BoomBox/glTF-Binary/BoomBox.glb', function( gltf ) {
 
-			boomBox =  gltf.scene;
+			var boomBox =  gltf.scene;
 			boomBox.position.set( 0, 0.2, 0 );
 			boomBox.scale.set( 20, 20, 20 );