浏览代码

use setFocalLength() to avoid deprecation warning

aardgoose 8 年之前
父节点
当前提交
64298819be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_postprocessing_dof2.html

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