Changeset 8449 in orxonox.OLD for branches/atmospheric_engine/src
- Timestamp:
- Jun 15, 2006, 12:53:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc
r8373 r8449 78 78 79 79 this->time = 0.0; 80 this->flashFrequency = 1.4f;81 this->mainFrequency = 1.4f;82 this->flashConstTime = 0. 5f;83 this->flashRisingTime = 0. 1f;84 85 this->width = 400.0f;86 this->height = 100.0f;87 this->seedWidth = 50 ;88 this->seedHeight = 50 ;80 this->flashFrequency = 4.0f; 81 this->mainFrequency = 4.0f; 82 this->flashConstTime = 0.1f; 83 this->flashRisingTime = 0.03f; 84 85 this->width = 700.0f; 86 this->height = 250.0f; 87 this->seedWidth = 50.0f; 88 this->seedHeight = 50.0f; 89 89 this->bNewCoordinate = false; 90 this->lighteningMove = false; 90 91 91 92 this->seedX = 500.f; 92 93 this->seedZ = 1000.0f; 93 this->seedTime = 4.0f; 94 this->seedTime = 2.0f; 95 96 this->mainPosX = 3000; 97 this->mainPosY = 900; 98 this->mainPosZ = 0; 94 99 95 100 // initialize lightening textures … … 116 121 if (this->lighteningMove) { 117 122 this->cameraCoor = State::getCameraNode()->getAbsCoor(); 118 this->billboard[0]->setAbsCoor(this->cameraCoor.x+3000, 850,this->cameraCoor.z+0);119 this->billboard[1]->setAbsCoor(this->cameraCoor.x+3000, 850,this->cameraCoor.z+0);120 this->billboard[2]->setAbsCoor(this->cameraCoor.x+3000, 850,this->cameraCoor.z+0);121 this->billboard[3]->setAbsCoor(this->cameraCoor.x+3000, 850,this->cameraCoor.z+0);123 this->billboard[0]->setAbsCoor(this->cameraCoor.x+3000,900,this->cameraCoor.z+0); 124 this->billboard[1]->setAbsCoor(this->cameraCoor.x+3000,900,this->cameraCoor.z+0); 125 this->billboard[2]->setAbsCoor(this->cameraCoor.x+3000,900,this->cameraCoor.z+0); 126 this->billboard[3]->setAbsCoor(this->cameraCoor.x+3000,900,this->cameraCoor.z+0); 122 127 } else { 123 this->billboard[0]->setAbsCoor(3000, 850,0);124 this->billboard[1]->setAbsCoor(3000, 850,0);125 this->billboard[2]->setAbsCoor(3000, 850,0);126 this->billboard[3]->setAbsCoor(3000, 850,0);128 this->billboard[0]->setAbsCoor(3000,900,0); 129 this->billboard[1]->setAbsCoor(3000,900,0); 130 this->billboard[2]->setAbsCoor(3000,900,0); 131 this->billboard[3]->setAbsCoor(3000,900,0); 127 132 } 128 133
Note: See TracChangeset
for help on using the changeset viewer.