From 7bc0c8eff08ce82c82c239d8c73a8f934a8a0f3e Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Mon, 24 Mar 2014 15:07:57 -0700 Subject: [PATCH] Missed a spot. --- interface/src/Application.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index c36e9a77db..2ca4ef74cd 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2142,7 +2142,6 @@ void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) { viewFrustum.setOrientation(rotation); // Also make sure it's got the correct lens details from the camera - viewFrustum.setOrthographic(false); viewFrustum.setAspectRatio(aspectRatio); viewFrustum.setFieldOfView(fov); // degrees viewFrustum.setNearClip(nearClip); @@ -2218,8 +2217,8 @@ void Application::updateShadowMap() { glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity(); - glm::vec3 axis = glm::axis(rotation); - glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z); + glm::vec3 axis = glm::axis(inverseRotation); + glRotatef(glm::degrees(glm::angle(inverseRotation)), axis.x, axis.y, axis.z); // store view matrix without translation, which we'll use for precision-sensitive objects glGetFloatv(GL_MODELVIEW_MATRIX, (GLfloat*)&_untranslatedViewMatrix);