mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-01 12:20:54 +00:00
non-skybox skies were overbrighting, fixed
This commit is contained in:
parent
19afb34084
commit
accc15a82e
2 changed files with 8 additions and 1 deletions
|
@ -918,7 +918,8 @@ void DrawTextureChains (void)
|
|||
if (!gl_texsort->value) {
|
||||
GL_DisableMultitexture();
|
||||
|
||||
if (skychain) {
|
||||
if (skychain)
|
||||
{
|
||||
R_DrawSkyChain(skychain);
|
||||
skychain = NULL;
|
||||
}
|
||||
|
|
|
@ -888,6 +888,9 @@ void R_DrawSkyChain (msurface_t *s)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
// skies have no lightmap to prevent overbrighting --KB
|
||||
glColor3f (0.5, 0.5, 0.5);
|
||||
|
||||
GL_DisableMultitexture();
|
||||
|
||||
// used when gl_texsort is on
|
||||
|
@ -904,6 +907,9 @@ void R_DrawSkyChain (msurface_t *s)
|
|||
|
||||
for (fa=s ; fa ; fa=fa->texturechain)
|
||||
EmitSkyPolys (fa);
|
||||
|
||||
// the rest of the texture chain does though --KB
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue