clean code

This commit is contained in:
Sam Gateau 2015-01-05 13:10:32 -08:00
parent 0b8b4c6d08
commit 7529b3d1b0
2 changed files with 2 additions and 2 deletions

View file

@ -2795,7 +2795,7 @@ void Application::updateShadowMap() {
QOpenGLFramebufferObject* fbo = DependencyManager::get<TextureCache>()->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);

View file

@ -112,4 +112,4 @@ vec3 debugShadowMap(float shadowAttenuation, vec4 shadowTexcoord) {
// return shadowAttenuation * vec3(2.0*(shadowTexcoord.xy - offsetArray[int(shadowTexcoord.w)]), 0);
}
<@endif@>
<@endif@>