Changeset 8828 in orxonox.OLD for branches/mountain_lake/src/world_entities/environments/mapped_water.cc
- Timestamp:
- Jun 27, 2006, 3:01:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/world_entities/environments/mapped_water.cc
r8821 r8828 292 292 293 293 294 // if(this->tempcounter == 200) {294 // if(this->tempcounter == 100) { 295 295 // this->resetWaterColor(1, 0, 0); 296 296 // resetShininess(1); … … 299 299 // } 300 300 // tempcounter++; 301 302 if(this->tempcounter == 10) { 303 this->fadeWaterColor(1, 0, 0, 10); 304 305 PRINTF(0)("test waterchangecolor "); 306 } 307 tempcounter++; 308 309 if(this->newWaterColor != this->waterColor) 310 { 311 float time = this->colorFadeTime / dt; 312 float x = (this->newWaterColor.x - this->waterColor.x) * time +this->waterColor.x; 313 float y = (this->newWaterColor.y - this->waterColor.y) * time +this->waterColor.y; 314 float z = (this->newWaterColor.z - this->waterColor.z) * time +this->waterColor.z; 315 316 this->colorFadeTime -= dt; 317 this->resetWaterColor(x, y, z); 318 } 301 319 302 320 }
Note: See TracChangeset
for help on using the changeset viewer.