mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
ATI fog fix
git-svn-id: https://svn.eduke32.com/eduke32@387 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7dcd346352
commit
a53a03eb88
1 changed files with 10 additions and 2 deletions
|
@ -581,8 +581,16 @@ void polymost_glinit()
|
|||
{
|
||||
GLfloat col[4];
|
||||
|
||||
bglFogi(GL_FOG_MODE,GL_EXP2); //GL_EXP(default),GL_EXP2,GL_LINEAR
|
||||
bglHint(GL_FOG_HINT,GL_NICEST);
|
||||
if (!Bstrcmp(glinfo.vendor, "ATI Technologies Inc."))
|
||||
{
|
||||
initprintf("polymost_glinit(): ATI detected, GL_FOG_HINT = GL_DONT_CARE\n");
|
||||
bglHint(GL_FOG_HINT,GL_DONT_CARE);
|
||||
}
|
||||
else
|
||||
{
|
||||
bglHint(GL_FOG_HINT,GL_NICEST);
|
||||
}
|
||||
bglFogi(GL_FOG_MODE,GL_EXP2);
|
||||
bglFogf(GL_FOG_DENSITY,1.0); //must be > 0, default is 1
|
||||
/* bglFogf(GL_FOG_START,0.0); //default is 0
|
||||
bglFogf(GL_FOG_END,1.0); //default is 1 */
|
||||
|
|
Loading…
Reference in a new issue