Skip to content

Commit

Permalink
- make particles square
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed May 3, 2024
1 parent a6e1114 commit 4bf2fb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rendering/hwrenderer/scene/hw_sprites.cpp
Expand Up @@ -1447,7 +1447,11 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
else factor = 1 / 7.f;
float scalefac=particle->size * factor;

float viewvecX = vp.ViewVector.X * scalefac;
float ps = di->Level->pixelstretch;

scalefac *= 2 * ps / (ps * ps + 1); // shrink it slightly to account for the stretch

float viewvecX = vp.ViewVector.X * scalefac * ps;
float viewvecY = vp.ViewVector.Y * scalefac;

x1=x+viewvecY;
Expand Down

0 comments on commit 4bf2fb0

Please sign in to comment.