Commit 53e4fe3e authored by frankie's avatar frankie 💬

test on fps_camera before updating

parent c0465bba
......@@ -424,8 +424,10 @@ function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
fps_camera.aspect = window.innerWidth / window.innerHeight;
fps_camera.updateProjectionMatrix();
if ( fps_camera ) {
fps_camera.aspect = window.innerWidth / window.innerHeight;
fps_camera.updateProjectionMatrix();
}
renderer.setSize( window.innerWidth, window.innerHeight );
lightShadowMapViewer = new THREE.ShadowMapViewer( main_light );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment