Browse Source

Merge pull request #10211 from aardgoose/example-fixes

Example fixes. kill deprecation warnings
Mr.doob 8 years ago
parent
commit
a706aba938

+ 0 - 3
examples/webgl_loader_vrml.html

@@ -64,9 +64,6 @@
 				controls.rotateSpeed = 5.0;
 				controls.zoomSpeed = 5;
 
-				controls.noZoom = false;
-				controls.noPan = false;
-
 				scene = new THREE.Scene();
 				scene.add( camera );
 

+ 1 - 1
examples/webgl_panorama_cube.html

@@ -74,7 +74,7 @@
 
 			}
 
-			var skyBox = new THREE.Mesh( new THREE.CubeGeometry( 1, 1, 1 ), new THREE.MeshFaceMaterial( materials ) );
+			var skyBox = new THREE.Mesh( new THREE.CubeGeometry( 1, 1, 1 ), new THREE.MultiMaterial( materials ) );
 			skyBox.applyMatrix( new THREE.Matrix4().makeScale( 1, 1, - 1 ) );
 			scene.add( skyBox );
 

+ 1 - 1
examples/webgl_postprocessing_dof2.html

@@ -300,7 +300,7 @@ Use WEBGL Depth buffer support?
 					postprocessing.enabled = effectController.enabled;
 					postprocessing.bokeh_uniforms[ 'znear' ].value = camera.near;
 					postprocessing.bokeh_uniforms[ 'zfar' ].value = camera.far;
-					camera.setLens(effectController.focalLength);
+					camera.setFocalLength(effectController.focalLength);
 
 				};