Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2006, 11:12:05 AM (19 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc

    r8700 r8702  
    122122
    123123    // If Fog Fade
    124     if ( this->fogFadeInActivate || this->fogFadeOutActivate )
    125         glFogf(GL_FOG_DENSITY, this->fogFadeDensity);
    126 
     124    if ( this->fogFadeInActivate || this->fogFadeOutActivate ) {
     125      glDisable(GL_FOG);
     126      glFogf(GL_FOG_DENSITY, this->fogFadeDensity);
     127      glEnable(GL_FOG);
     128    }
    127129}
    128130
Note: See TracChangeset for help on using the changeset viewer.