From 7529b3d1b040aa54e267610911a686b44d0082e5 Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Mon, 5 Jan 2015 13:10:32 -0800 Subject: [PATCH] clean code --- interface/src/Application.cpp | 2 +- libraries/render-utils/src/Shadow.slh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 1bfbd37a74..6db12e6937 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2795,7 +2795,7 @@ void Application::updateShadowMap() { QOpenGLFramebufferObject* fbo = DependencyManager::get()->getShadowFramebufferObject(); fbo->bind(); glEnable(GL_DEPTH_TEST); - glClear(/*GL_COLOR_BUFFER_BIT | */GL_DEPTH_BUFFER_BIT); + glClear(GL_DEPTH_BUFFER_BIT); glm::vec3 lightDirection = -getSunDirection(); glm::quat rotation = rotationBetween(IDENTITY_FRONT, lightDirection); diff --git a/libraries/render-utils/src/Shadow.slh b/libraries/render-utils/src/Shadow.slh index 9f50167ebc..a8d0ce457a 100755 --- a/libraries/render-utils/src/Shadow.slh +++ b/libraries/render-utils/src/Shadow.slh @@ -112,4 +112,4 @@ vec3 debugShadowMap(float shadowAttenuation, vec4 shadowTexcoord) { // return shadowAttenuation * vec3(2.0*(shadowTexcoord.xy - offsetArray[int(shadowTexcoord.w)]), 0); } -<@endif@> \ No newline at end of file +<@endif@>