diff --git a/examples/webgl_materials_video_webcam.html b/examples/webgl_materials_video_webcam.html index b7beaa6fe03c2a..f8229fffca772b 100644 --- a/examples/webgl_materials_video_webcam.html +++ b/examples/webgl_materials_video_webcam.html @@ -95,17 +95,17 @@ function onWindowResize() { - camera.aspect = window.innerWidth / window.innerHeight; - camera.updateProjectionMatrix(); + camera.aspect = window.innerWidth / window.innerHeight; + camera.updateProjectionMatrix(); - renderer.setSize( window.innerWidth, window.innerHeight ); + renderer.setSize( window.innerWidth, window.innerHeight ); } function animate() { - requestAnimationFrame( animate ); - renderer.render( scene, camera ); + requestAnimationFrame( animate ); + renderer.render( scene, camera ); }