non-skybox skies were overbrighting, fixed

This commit is contained in:
Joseph Carter 2000-06-03 22:47:05 +00:00
parent 19afb34084
commit accc15a82e
2 changed files with 8 additions and 1 deletions

View File

@ -918,7 +918,8 @@ void DrawTextureChains (void)
if (!gl_texsort->value) {
GL_DisableMultitexture();
if (skychain) {
if (skychain)
{
R_DrawSkyChain(skychain);
skychain = NULL;
}

View File

@ -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);
}
}