未验证 提交 3b4447d7 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15867 from Mugen87/dev24

Examples: Fix onWindowResize() in webgl_postprocessing_dof2
......@@ -332,6 +332,15 @@
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
windowHalfX = window.innerWidth / 2;
windowHalfY = window.innerHeight / 2;
postprocessing.rtTextureDepth.setSize( window.innerWidth, window.innerHeight );
postprocessing.rtTextureColor.setSize( window.innerWidth, window.innerHeight );
postprocessing.bokeh_uniforms[ 'textureWidth' ].value = window.innerWidth;
postprocessing.bokeh_uniforms[ 'textureHeight' ].value = window.innerHeight;
renderer.setSize( window.innerWidth, window.innerHeight );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册