Fixed up some of the "ugly fog code" and removed an obsolete comment

This commit is contained in:
Eric Windisch 1999-12-31 04:44:04 +00:00
parent 1def055dcb
commit 67b65279a3
1 changed files with 2 additions and 3 deletions

View File

@ -1094,7 +1094,7 @@ void R_RenderView (void)
//>>>>>>> 1.3
// Fixme: the last argument should be a cvar... r_fog_gamma
GLfloat colors[4] = {(GLfloat) 0.0, (GLfloat) 0.0, (GLfloat) 1, (GLfloat) 0.10};
GLfloat colors[4] = {(GLfloat) 0.0, (GLfloat) 0.0, (GLfloat) 1, (GLfloat) 0.15};
if (r_norefresh.value)
return;
@ -1135,10 +1135,9 @@ display _much_ prettier. small hack
if(r_fog.value) {
// fixme: would be nice if the user could select what fogmode... (r_fog_mode)
// and if they want fog or not... (r_fog)
glFogi (GL_FOG_MODE, GL_EXP2);
glFogfv (GL_FOG_COLOR, colors);
// fixme: GL_FOG_DENSITY should have r_fog_density cvar
// fixme: GL_FOG_DENSITY should have r_fog_density var
glFogf (GL_FOG_DENSITY, .0005);
glEnable(GL_FOG);
}