Fixes to make the new GLM version compatible

This commit is contained in:
Alexander Bock
2015-10-05 14:40:21 +02:00
parent 410e0137eb
commit cb27e37778
6 changed files with 17 additions and 17 deletions

View File

@@ -147,7 +147,7 @@ void Camera::compileViewRotationMatrix()
// the camera matrix needs to be rotated inverse to the world
// _viewDirection = glm::rotate(glm::inverse(_viewRotation), _cameraDirection);
//_viewDirection = (glm::inverse(_localViewRotationMatrix) * glm::vec4(_cameraDirection, 0.f)).xyz;
_viewDirection = (glm::inverse(_localViewRotationMatrix) * glm::vec4(_cameraDirection, 0.f)).xyz;
_viewDirection = (glm::inverse(_localViewRotationMatrix) * glm::vec4(_cameraDirection, 0.f)).xyz();
_viewDirection = glm::normalize(_viewDirection);
}