diff --git a/base/camera.hpp b/base/camera.hpp index c7036992..f602afb5 100644 --- a/base/camera.hpp +++ b/base/camera.hpp @@ -98,6 +98,9 @@ public: void updateAspectRatio(float aspect) { matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar); + if (flipY) { + matrices.perspective[1, 1] *= -1.0f; + } } void setPosition(glm::vec3 position)