Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2142,7 +2142,6 @@ void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) { · 2141 unmodified lines | |||
| 2142 | viewFrustum.setOrientation(rotation); | 2142 | viewFrustum.setOrientation(rotation); |
| 2143 | 2143 | ||
| 2144 | // Also make sure it's got the correct lens details from the camera | 2144 | // Also make sure it's got the correct lens details from the camera |
| 2145 | viewFrustum.setOrthographic(false); | ||
| 2146 | viewFrustum.setAspectRatio(aspectRatio); | 2145 | viewFrustum.setAspectRatio(aspectRatio); |
| 2147 | viewFrustum.setFieldOfView(fov); // degrees | 2146 | viewFrustum.setFieldOfView(fov); // degrees |
| 2148 | viewFrustum.setNearClip(nearClip); | 2147 | viewFrustum.setNearClip(nearClip); |
| @@ -2218,8 +2217,8 @@ void Application::updateShadowMap() { · 69 unmodified lines | |||
| 2218 | glMatrixMode(GL_MODELVIEW); | 2217 | glMatrixMode(GL_MODELVIEW); |
| 2219 | glPushMatrix(); | 2218 | glPushMatrix(); |
| 2220 | glLoadIdentity(); | 2219 | glLoadIdentity(); |
| 2221 | glm::vec3 axis = glm::axis(rotation); | 2220 | glm::vec3 axis = glm::axis(inverseRotation); |
| 2222 | glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z); | 2221 | glRotatef(glm::degrees(glm::angle(inverseRotation)), axis.x, axis.y, axis.z); |
| 2223 | 2222 | ||
| 2224 | // store view matrix without translation, which we'll use for precision-sensitive objects | 2223 | // store view matrix without translation, which we'll use for precision-sensitive objects |
| 2225 | glGetFloatv(GL_MODELVIEW_MATRIX, (GLfloat*)&_untranslatedViewMatrix); | 2224 | glGetFloatv(GL_MODELVIEW_MATRIX, (GLfloat*)&_untranslatedViewMatrix); |