Made fog a little more resliliant to distance.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@384 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f1c3a20eef
commit
10ad1bbade
1 changed files with 3 additions and 5 deletions
|
@ -619,8 +619,6 @@ void GL_InitFogTexture (void)
|
|||
t = (float)(sqrt( tx ) * 255.0);
|
||||
data[x+y*FOG_TEXTURE_WIDTH] = (qbyte)(min( t, 255.0f ));
|
||||
}
|
||||
|
||||
data[y] = 0;
|
||||
}
|
||||
|
||||
r_fogtexture = texture_extension_number++;
|
||||
|
@ -629,9 +627,9 @@ void GL_InitFogTexture (void)
|
|||
|
||||
qglTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, gl_filter_max);
|
||||
qglTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl_filter_max);
|
||||
|
||||
qglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
qglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
||||
|
||||
qglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
qglTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue