From 799f19148562004aa1ec3162d4e4de24c8f875dc Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 15 Dec 2014 22:59:13 +0100 Subject: [PATCH] Disabled point light shadows, because they look very wrong. --- graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics.cc b/graphics.cc index 834f97a..014b0cb 100644 --- a/graphics.cc +++ b/graphics.cc @@ -112,7 +112,7 @@ void Graphics::render() glClear(GL_DEPTH_BUFFER_BIT); glm::mat4 depthViewProjectionMatrix_face = depthProjectionMatrix_pointlights * glm::lookAt(level->getLights()->at(i_pointlight).getPosition(), level->getLights()->at(i_pointlight).getPosition() + looking_directions[i_face], glm::vec3(0.0f, 1.0f, 0.0f)); - level->render(depthShader, false, &depthViewProjectionMatrix_face); + //level->render(depthShader, false, &depthViewProjectionMatrix_face); if (!framebuffer_cube->isFrameBufferObjectComplete()) { printf("Framebuffer incomplete, unknown error occured during shadow generation!\n"); }