mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 02:15:38 +02:00
Fix particle aging
This commit is contained in:
parent
8dcf245b74
commit
b3b73e8cd1
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ void ParticleEffectEntityItem::stepSimulation(float deltaTime) {
|
|||
// move head forward
|
||||
_particleHeadIndex = (_particleHeadIndex + 1) % _maxParticles;
|
||||
} else {
|
||||
float age = 1.0f - _particleLifetimes[i] / _lifespan; // 0.0 .. 1.0
|
||||
float age = _particleLifetimes[i] / _lifespan; // 0.0 .. 1.0
|
||||
updateRadius(i, age);
|
||||
updateColor(i, age);
|
||||
updateAlpha(i, age);
|
||||
|
|
Loading…
Reference in a new issue