Changeset 7843 in orxonox.OLD for trunk/src/lib/graphics/effects
- Timestamp:
- May 24, 2006, 11:17:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/lense_flare.cc
r7840 r7843 41 41 42 42 /** 43 * default constructor43 * @brief default constructor 44 44 * @param root The XML-element to load the LenseFlare from 45 45 */ … … 128 128 129 129 /** 130 * converts a gl mode char to a GLint130 * @brief converts a gl mode char to a GLint 131 131 * @param mode the mode character 132 132 */ … … 136 136 137 137 /** 138 * adds a texture flare138 * @brief adds a texture flare 139 139 * @param textureName the name of the flare texture 140 140 * … … 169 169 bb->setVisibility(true); 170 170 } 171 171 172 PRINTF(4)("Finished adding\n"); 172 173 } … … 175 176 void LenseFlare::setSourceVisibility(bool visibility) 176 177 { 177 if (this->isVisible == visibility)178 return;178 // if (this->isVisible == visibility) 179 // return; 179 180 180 181 float dist = this->frustumPlane.distancePoint(this->lightSource->getAbsCoor()); … … 205 206 //set the frustum plane 206 207 207 this->frustumPlane = State::getCamera()->getViewFrustum();208 209 if (State::getCamera()->distance(lightSource) < 0)210 this->setSourceVisibility(false);211 else212 this->setSourceVisibility(true);208 // this->frustumPlane = State::getCamera()->getViewFrustum(); 209 // 210 // if (State::getCamera()->distance(lightSource) < 0) 211 // this->setSourceVisibility(false); 212 // else 213 // this->setSourceVisibility(true); 213 214 214 215 … … 233 234 (*it)->setSize2D(50.0f * this->flareMatrix[i * 2 + 1], 50.0f * this->flareMatrix[i * 2 + 1]); 234 235 PRINTF(5)("Tick flare %i @ (%f, %f)\n", i, (*it)->getAbsCoor2D().x, (*it)->getAbsCoor2D().y); 235 // tick them236 (*it)->tick(dt);237 236 } 238 237 }
Note: See TracChangeset
for help on using the changeset viewer.