mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 18:13:29 +02:00
clean code
This commit is contained in:
parent
0b8b4c6d08
commit
7529b3d1b0
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -112,4 +112,4 @@ vec3 debugShadowMap(float shadowAttenuation, vec4 shadowTexcoord) {
|
|||
// return shadowAttenuation * vec3(2.0*(shadowTexcoord.xy - offsetArray[int(shadowTexcoord.w)]), 0);
|
||||
}
|
||||
|
||||
<@endif@>
|
||||
<@endif@>
|
||||
|
|
Loading…
Reference in a new issue