mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Clamp overbright bits in warping surfaces to 1.
They oversaturate otherwise.
This commit is contained in:
parent
1bbd8c04ff
commit
87f9084df1
1 changed files with 4 additions and 2 deletions
|
@ -453,12 +453,14 @@ R_RenderBrushPoly(msurface_t *fa)
|
||||||
|
|
||||||
0: Old behaviour.
|
0: Old behaviour.
|
||||||
1: No overbright bits on the global scene but correct lightning on
|
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)
|
if (gl_overbrightbits->value)
|
||||||
{
|
{
|
||||||
R_TexEnv(GL_COMBINE_EXT);
|
R_TexEnv(GL_COMBINE_EXT);
|
||||||
R_SelectTexture(GL_TEXTURE1);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue