mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-19 12:59:36 +00:00
Remove commented-out code
This commit is contained in:
parent
0f39b825e1
commit
eb128e65a4
162 changed files with 2092 additions and 6594 deletions
|
@ -43,7 +43,7 @@ void LensFlare::addFlare(const std::string &tex, Vector color, int w, int h)
|
|||
|
||||
void LensFlare::onUpdate(float dt)
|
||||
{
|
||||
//const int maxLen = 1500;
|
||||
|
||||
RenderObject::onUpdate(dt);
|
||||
Vector v = core->screenCenter - this->position;
|
||||
if (v.getSquaredLength2D() > sqr(maxLen))
|
||||
|
@ -53,7 +53,7 @@ void LensFlare::onUpdate(float dt)
|
|||
float l = v.getLength2D();
|
||||
float a = 1.0f-(l/(float)maxLen);
|
||||
a*=0.8f;
|
||||
//Vector vbit = v*(1.0f/flares.size());
|
||||
|
||||
Vector vbit = v;
|
||||
vbit *= inc;
|
||||
for (int i = 0; i < flares.size(); i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue