Changeset 8023 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc
- Timestamp:
- May 31, 2006, 1:16:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc
r7810 r8023 20 20 #include "glincl.h" 21 21 22 /*#include "shell_command.h" 23 SHELL_COMMAND(activateFog, FogEffect, FogEffect::activate) 24 ->setAlias("aFog"); 25 SHELL_COMMAND(deactivateFog, FogEffect, FogEffect::deactivate) 26 ->setAlias("dFog");*/ 22 #include "shell_command.h" 23 24 SHELL_COMMAND(activate, FogEffect, activateFog); 25 SHELL_COMMAND(deactivate, FogEffect, deactivateFog); 27 26 28 27 using namespace std; … … 39 38 this->loadParams(root); 40 39 41 this->activate(); 40 if( this->fogActivate ) 41 this->activate(); 42 42 } 43 43 … … 57 57 LoadParam(root, "range", this, FogEffect, setFogRange); 58 58 LoadParam(root, "color", this, FogEffect, setFogColor); 59 LoadParam(root, "option", this, FogEffect, setFogOption); 59 60 } 60 61 … … 62 63 { 63 64 //default values 65 this->fogActivate = false; 64 66 this->fogMode = GL_EXP2; 65 67 this->fogDensity = 0.001;
Note: See TracChangeset
for help on using the changeset viewer.