Changeset 7316 in orxonox.OLD for trunk/src/lib/graphics/effects
- Timestamp:
- Apr 17, 2006, 1:49:05 AM (18 years ago)
- Location:
- trunk/src/lib/graphics/effects
- Files:
-
- 2 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(); -
trunk/src/lib/graphics/effects/lense_flare.h
r7221 r7316 11 11 #include <vector> 12 12 13 #include "vector .h"13 #include "vector2D.h" 14 14 #include "plane.h" 15 15 … … 52 52 std::vector<Billboard*> flares; //!< the flares array 53 53 54 Vector 54 Vector2D flareVector; //!< the axis to draw the flares on 55 55 float distance; //!< distance from center to source 56 Vector 56 Vector2D screenCenter; //!< the vector marking the center of the screen 57 57 58 58 float* flareMatrix;
Note: See TracChangeset
for help on using the changeset viewer.