add gl_skymultipass to conroll whether the skydome is single or double pass.

Currently defaults to 1 (multipass, ie old behaviour).
This commit is contained in:
Bill Currie 2000-07-30 02:54:17 +00:00
parent b0f20f955c
commit 92baf1a751
4 changed files with 13 additions and 7 deletions

View file

@ -754,13 +754,15 @@ R_DrawSkyDome (void)
glEnable (GL_BLEND);
// clouds
glBindTexture (GL_TEXTURE_2D, alphaskytexture);
domescale[0] = 512;
domescale[1] = 512;
domescale[2] = 128;
speedscale = realtime*16;
speedscale -= (int)speedscale & ~127;
R_DrawSkyLayer (speedscale);
if (gl_skymultipass->value) {
glBindTexture (GL_TEXTURE_2D, alphaskytexture);
domescale[0] = 512;
domescale[1] = 512;
domescale[2] = 128;
speedscale = realtime*16;
speedscale -= (int)speedscale & ~127;
R_DrawSkyLayer (speedscale);
}
// glDisable (GL_BLEND);
glColor3f (1,1,1);