Changeset 8247 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
- Timestamp:
- Jun 8, 2006, 2:55:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc
r8242 r8247 116 116 117 117 lightMan = LightManager::getInstance(); 118 this->rainAmbient = lightMan->getAmbientColor(); 118 119 } 119 120 … … 163 164 this->rainActivate = false; 164 165 this->emitter->setSystem(NULL); 166 167 // Stop Sound 165 168 this->soundSource.stop(); 166 169 167 lightMan->setAmbientColor(1,1,1); 170 // Restore Light Ambient 171 lightMan->setAmbientColor(this->rainAmbient, this->rainAmbient, this->rainAmbient); 168 172 } 169 173 … … 182 186 float progress = this->localTimer / this->rainStartDuration; 183 187 184 // PRINTF(0)("Progress %f: \n", progress); 188 // Dim Light 189 lightMan->setAmbientColor(1.1 - progress, 1.1 - progress, 1.1 - progress); 185 190 186 191 // use alpha in color to fade in
Note: See TracChangeset
for help on using the changeset viewer.