Changeset 7316 in orxonox.OLD for trunk/src/lib/graphics/effects/lense_flare.cc
- Timestamp:
- Apr 17, 2006, 1:49:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/lense_flare.cc
r7221 r7316 212 212 213 213 // always update the screen center, it could be, that the window is resized 214 this->screenCenter = Vector (State::getResX()/2.0f, State::getResY()/2.0f, 0.0f);214 this->screenCenter = Vector2D(State::getResX()/2.0f, State::getResY()/2.0f); 215 215 216 216 // flare vector is the direction from the center to the light source 217 217 this->flareVector = this->flares[0]->getAbsCoor2D() - this->screenCenter; 218 this->flareVector.z = 0.0f;219 218 this->distance = this->flareVector.len(); 220 219 this->flareVector.normalize();
Note: See TracChangeset
for help on using the changeset viewer.