Przeglądaj źródła

Examples: Clean up

Mugen87 7 lat temu
rodzic
commit
f7b672c42e
1 zmienionych plików z 2 dodań i 2 usunięć
  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 );