浏览代码

Merge pull request #10211 from aardgoose/example-fixes

Example fixes. kill deprecation warnings
Mr.doob 8 年之前
父节点
当前提交
a706aba938
共有 3 个文件被更改,包括 2 次插入5 次删除
  1. 0 3
      examples/webgl_loader_vrml.html
  2. 1 1
      examples/webgl_panorama_cube.html
  3. 1 1
      examples/webgl_postprocessing_dof2.html

+ 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);
 
 				};