소스 검색

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.rotateSpeed = 5.0;
 				controls.zoomSpeed = 5;
 				controls.zoomSpeed = 5;
 
 
-				controls.noZoom = false;
-				controls.noPan = false;
-
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 				scene.add( camera );
 				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 ) );
 			skyBox.applyMatrix( new THREE.Matrix4().makeScale( 1, 1, - 1 ) );
 			scene.add( skyBox );
 			scene.add( skyBox );
 
 

+ 1 - 1
examples/webgl_postprocessing_dof2.html

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