mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Leave the glow level alone when writing the deferred-lit bits.
This commit is contained in:
parent
580d591dc4
commit
da05d37015
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,7 @@ void DeferredLightingEffect::render() {
|
|||
|
||||
// now transfer the lit region to the primary fbo
|
||||
glEnable(GL_BLEND);
|
||||
glColorMask(true, true, true, false);
|
||||
|
||||
primaryFBO->bind();
|
||||
|
||||
|
@ -200,6 +201,7 @@ void DeferredLightingEffect::render() {
|
|||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
|
||||
glColorMask(true, true, true, true);
|
||||
glEnable(GL_LIGHTING);
|
||||
glEnable(GL_COLOR_MATERIAL);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
|
Loading…
Reference in a new issue