From 87f9084df1c8efdb381e4f421a231e5fd850108d Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Wed, 17 Aug 2016 21:12:52 +0200 Subject: [PATCH] Clamp overbright bits in warping surfaces to 1. They oversaturate otherwise. --- src/client/refresh/r_surf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/refresh/r_surf.c b/src/client/refresh/r_surf.c index 7af09fb9..6af16fff 100644 --- a/src/client/refresh/r_surf.c +++ b/src/client/refresh/r_surf.c @@ -453,12 +453,14 @@ R_RenderBrushPoly(msurface_t *fa) 0: Old behaviour. 1: No overbright bits on the global scene but correct lightning on - warping surfaces. */ + warping surfaces. + 2: Overbright bits on the global scene but not on warping surfaces. + They oversaturate otherwise. */ if (gl_overbrightbits->value) { R_TexEnv(GL_COMBINE_EXT); R_SelectTexture(GL_TEXTURE1); - glTexEnvi(GL_TEXTURE_ENV, GL_RGB_SCALE_EXT, gl_overbrightbits->value); + glTexEnvi(GL_TEXTURE_ENV, GL_RGB_SCALE_EXT, 1); } else {