Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6758 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 26, 2006, 2:14:52 AM (19 years ago)
Author:
patrick
Message:

network: added fog effects

Location:
branches/network/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/graphics_engine.cc

    r6755 r6758  
    3737
    3838#include "effects/graphics_effect.h"
     39#include "effects/fog_effect.h"
    3940
    4041#include "shell_command.h"
     
    148149
    149150  this->initVideo(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16);
     151
     152  GraphicsEffect* fe = new FogEffect(NULL);
     153  this->loadGraphicsEffect(fe);
     154  fe->activate();
     155  PRINTF(0)("--------------------------------------------------------------\n");
    150156}
    151157
  • branches/network/src/world_entities/skybox.cc

    r6695 r6758  
    225225  glDisable(GL_LIGHTING);
    226226
     227  glPushAttrib(GL_ENABLE_BIT);
     228  glDisable(GL_FOG);
     229
    227230  WorldEntity::draw();
    228231
     232  glPopAttrib();
    229233  glPopAttrib();
    230234
Note: See TracChangeset for help on using the changeset viewer.