Przeglądaj źródła

Merge pull request #19117 from WestLangley/dev_additive_blend_example

Examples: Clean up additive blending example
Mr.doob 5 lat temu
rodzic
commit
d1c50fcad1

+ 6 - 4
examples/webgl_animation_skinning_additive_blending.html

@@ -157,11 +157,13 @@
 				container.appendChild( renderer.domElement );
 
 				// camera
-				camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 1000 );
-				var controls = new OrbitControls( camera, renderer.domElement );
+				camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 100 );
 				camera.position.set( - 1, 2, 3 );
-				camera.lookAt( 0, 1, 0 );
-				controls.target = new THREE.Vector3( 0, 1, 0 );
+
+				var controls = new OrbitControls( camera, renderer.domElement );
+				controls.enablePan = false;
+				controls.enableZoom = false;
+				controls.target.set( 0, 1, 0 );
 				controls.update();
 
 				stats = new Stats();