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
21422142 viewFrustum.setOrientation(rotation);
21432143
21442144 // Also make sure it's got the correct lens details from the camera
2145− viewFrustum.setOrthographic(false);
21462145 viewFrustum.setAspectRatio(aspectRatio);
21472146 viewFrustum.setFieldOfView(fov); // degrees
21482147 viewFrustum.setNearClip(nearClip);
@@ -2218,8 +2217,8 @@ void Application::updateShadowMap() { · 69 unmodified lines
22182217 glMatrixMode(GL_MODELVIEW);
22192218 glPushMatrix();
22202219 glLoadIdentity();
2221− glm::vec3 axis = glm::axis(rotation);
2222− glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
2220+ glm::vec3 axis = glm::axis(inverseRotation);
2221+ glRotatef(glm::degrees(glm::angle(inverseRotation)), axis.x, axis.y, axis.z);
22232222
22242223 // store view matrix without translation, which we'll use for precision-sensitive objects
22252224 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