History

Missed a spot.

Andrzej Kapolka committed 12 years ago

Commit 7bc0c8e1 parent f1fd8171 file · +2 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+2−3
@@ -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 camera2144 // 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); // degrees2146 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 objects2223 // 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t