Fix ParticleSpewer outputting NaN in vertices

This commit is contained in:
Dan Balasescu 2022-04-09 22:29:55 +09:00
parent 2702f7b9f9
commit d482ab0287
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ protected override void Blit(Action<TexturedVertex2D> vertexAction)
{ {
foreach (var p in particles) foreach (var p in particles)
{ {
if (p.Duration == 0)
continue;
float timeSinceStart = currentTime - p.StartTime; float timeSinceStart = currentTime - p.StartTime;
// ignore particles from the future. // ignore particles from the future.