mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +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();
|
QOpenGLFramebufferObject* fbo = DependencyManager::get<TextureCache>()->getShadowFramebufferObject();
|
||||||
fbo->bind();
|
fbo->bind();
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
glClear(/*GL_COLOR_BUFFER_BIT | */GL_DEPTH_BUFFER_BIT);
|
glClear(GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
glm::vec3 lightDirection = -getSunDirection();
|
glm::vec3 lightDirection = -getSunDirection();
|
||||||
glm::quat rotation = rotationBetween(IDENTITY_FRONT, lightDirection);
|
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);
|
// return shadowAttenuation * vec3(2.0*(shadowTexcoord.xy - offsetArray[int(shadowTexcoord.w)]), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
<@endif@>
|
<@endif@>
|
||||||
|
|
Loading…
Reference in a new issue