diff --git a/src/js/app/components/camera.js b/src/js/app/components/camera.js index 8ed343b..1c4e2d5 100644 --- a/src/js/app/components/camera.js +++ b/src/js/app/components/camera.js @@ -20,8 +20,8 @@ export default class Camera { } updateSize(renderer) { - // Multiply by dpr in case it is retina device - this.threeCamera.aspect = renderer.domElement.width * Config.dpr / renderer.domElement.height * Config.dpr; + // Update camera aspect ratio with window aspect ratio + this.threeCamera.aspect = renderer.domElement.width / renderer.domElement.height; // Always call updateProjectionMatrix on camera change this.threeCamera.updateProjectionMatrix();