X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fcamera.cpp;h=f63785292f5f27505175cec23cdd3dcff8d4c29c;hb=0146c7b7f02ef5d74116546489aee85383bb4969;hp=d9b8e848c779a5bb5ff1c889934e906295114b40;hpb=33346e9a5c58e92e4d7cc7cb542cf5abb7ffeb25;p=tacos.git diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index d9b8e84..f637852 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -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π }