From 6ff8f33017b9d4ed626af86cab78249878dbccd8 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 15 Dec 2014 11:53:31 +0100 Subject: [PATCH] Fixed a parenthesis. --- graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics.cc b/graphics.cc index e2991d1..454deac 100644 --- a/graphics.cc +++ b/graphics.cc @@ -235,7 +235,7 @@ void Graphics::resize(glm::uvec2 windowSize) { } glm::mat4 Graphics::buildViewMatrix(Level* level) { - //construct lookAt (cameraPosition = cameraCenter + cameraVector + //construct lookAt (cameraPosition = cameraCenter + cameraVector) return glm::lookAt((level->getCameraCenter()->getPosition() + level->getCamera()->getVector()), level->getCameraCenter()->getPosition(), glm::vec3(0.0f, 1.0f, 0.0f)); }