]> git.localhorst.tv Git - tacos.git/blobdiff - src/graphics/camera.cpp
mouse cursor mockup
[tacos.git] / src / graphics / camera.cpp
index d9b8e848c779a5bb5ff1c889934e906295114b40..f63785292f5f27505175cec23cdd3dcff8d4c29c 100644 (file)
@@ -25,7 +25,7 @@ void Camera::Move(const glm::vec3 &delta) noexcept {
 
 void Camera::Rotate(const glm::vec2 &delta) noexcept {
        orientation += delta;
-       orientation.x = glm::clamp(orientation.x, -1.55f, 1.55f);
+       orientation.x = glm::clamp(orientation.x, 0.0f, 1.55f);
        while (orientation.y > 3.14159265358979323844f) { // π
                orientation.y -= 6.28318530717958647688f; // 2π
        }