Changeset 8787 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
- Timestamp:
- Jun 26, 2006, 2:29:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
r8771 r8787 26 26 #include "shell_command.h" 27 27 #include "light.h" 28 #include "cloud_effect.h" 28 29 29 30 #include "parser/tinyxml/tinyxml.h" … … 101 102 this->rainFadeInDuration = 0; 102 103 this->rainFadeOutDuration = 0; 104 105 this->cloudColor = Vector(0.8f, 0.8f, 0.8f); 106 this->skyColor = Vector(0.0f, 0.0f, 0.0f); 103 107 104 108 this->rainMaxParticles = this->rainRate * this->rainLife; … … 127 131 LoadParam(root, "fadeinduration", this, RainEffect, setRainFadeIn); 128 132 LoadParam(root, "fadeoutduration", this, RainEffect, setRainFadeOut); 133 LoadParam(root, "cloudcolor", this, RainEffect, setCloudColor); 134 LoadParam(root, "skycolor", this, RainEffect, setSkyColor); 129 135 130 136 LOAD_PARAM_START_CYCLE(root, element); … … 177 183 if (this->rainFadeInDuration == 0) 178 184 lightMan->setAmbientColor(.1,.1,.1); 185 186 // Change the cloudcolor,skycolor 187 this->oldCloudColor = CloudEffect::cloudColor; 188 this->oldSkyColor = CloudEffect::skyColor; 189 CloudEffect::changeCloudColor(this->cloudColor); 190 CloudEffect::changeSkyColor(this->skyColor); 179 191 } 180 192 … … 194 206 // Restore Light Ambient 195 207 lightMan->setAmbientColor(this->rainAmbient, this->rainAmbient, this->rainAmbient); 208 209 CloudEffect::changeCloudColor(this->oldCloudColor); 210 CloudEffect::changeSkyColor(this->oldSkyColor); 196 211 } 197 212
Note: See TracChangeset
for help on using the changeset viewer.