diff options
-rw-r--r-- | src/vignetting.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vignetting.cpp b/src/vignetting.cpp index 7d8df81..662b2d1 100644 --- a/src/vignetting.cpp +++ b/src/vignetting.cpp @@ -159,7 +159,8 @@ VigWindow::glDraw (const GLMatrix &transform, { /* Set the opacity of the vignette render to * the opposite of the real brightness of the window */ - fragment.setOpacity (OPAQUE - brightness); + fragment.setOpacity ((OPAQUE - brightness) * + (fragment.getOpacity () / OPAQUE)); /* Texture rendering set-up */ vs->gScreen->setTexEnvMode (GL_MODULATE); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |