Skip to content

Commit

Permalink
Draw the particles
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 16, 2024
1 parent c3f65fe commit 1c3538d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rendering/hwrenderer/scene/hw_drawinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,16 @@ void HWDrawInfo::CreateScene(bool drawpsprites, FRenderState& state)
sprite.Process(this, state, thing, thing->Sector, in_area, false);
}

// Draw particles
for (uint16_t i = level.ActiveParticles; i != NO_PARTICLE; i = level.Particles[i].tnext)
{
if (Level->Particles[i].subsector)
{
HWSprite sprite;
sprite.ProcessParticle(this, state, &Level->Particles[i], Level->Particles[i].subsector->sector, nullptr);
}
}

// Process all the sprites on the current portal's back side which touch the portal.
if (mCurrentPortal != nullptr) mCurrentPortal->RenderAttached(this, state);

Expand Down

0 comments on commit 1c3538d

Please sign in to comment.