From b28a5587325c591b93ce5ce52a6f5bd6322e6658 Mon Sep 17 00:00:00 2001 From: Erik Persson Date: Fri, 29 Nov 2013 09:24:41 +0100 Subject: [PATCH] fix transpose --- Code/GameLogic/Camera.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/GameLogic/Camera.cpp b/Code/GameLogic/Camera.cpp index 8e82d944..6ebaa05e 100644 --- a/Code/GameLogic/Camera.cpp +++ b/Code/GameLogic/Camera.cpp @@ -75,6 +75,7 @@ void Camera::SetLens(float fovY, float aspect, float zn, float zf) 0, yScale, 0, 0, 0, 0, zf/(zf-zn), 1, 0, 0, -zn*zf/(zf-zn), 0); + mProj.Transpose(); } void Camera::LookAt(Oyster::Math::Float3 pos, Oyster::Math::Float3 target, Oyster::Math::Float3 worldUp) @@ -198,4 +199,6 @@ void Camera::UpdateViewMatrix() mView.m34 = 0.0f; //this->mView(3, 3) = 1.0f; mView.m44 = 1.0f; + + mView.Transpose(); } \ No newline at end of file