- make particles square

This commit is contained in:
Rachael Alexanderson 2024-05-03 02:03:58 -04:00
parent a6e1114d3c
commit 4bf2fb0ef8
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -1447,7 +1447,11 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
else factor = 1 / 7.f; else factor = 1 / 7.f;
float scalefac=particle->size * factor; 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; float viewvecY = vp.ViewVector.Y * scalefac;
x1=x+viewvecY; x1=x+viewvecY;