Преглед на файлове

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