提交 a706aba9 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10211 from aardgoose/example-fixes

Example fixes. kill deprecation warnings
......@@ -64,9 +64,6 @@
controls.rotateSpeed = 5.0;
controls.zoomSpeed = 5;
controls.noZoom = false;
controls.noPan = false;
scene = new THREE.Scene();
scene.add( camera );
......
......@@ -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 );
......
......@@ -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);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册