From 81d2de53448030ebf97b5f8ed25782b5243d3968 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 28 Feb 2015 15:53:12 +0100 Subject: [PATCH] Fixed popping of directional shadows. --- graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics.cc b/graphics.cc index 5ff9e67..9ec7e48 100644 --- a/graphics.cc +++ b/graphics.cc @@ -170,7 +170,7 @@ void Graphics::render(double time) projection_size = farPlane/1.5f; break; } - depthViewProjectionMatrices.at(i) = glm::ortho(-projection_size, projection_size, -projection_size, projection_size, -farPlane/1.5f, projection_size) * + depthViewProjectionMatrices.at(i) = glm::ortho(-projection_size, projection_size, -projection_size, projection_size, -farPlane/1.5f, farPlane/1.5f) * glm::lookAt(sunVector, level->getCameraCenter()->getPosition(), glm::vec3(0,1,0)); level->render(depthShader, false, &depthViewProjectionMatrices.at(i)); if (!framebuffer_directional.at(i)->isFrameBufferObjectComplete()) {