mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 23:02:07 +00:00
- make particles square
This commit is contained in:
parent
a6e1114d3c
commit
4bf2fb0ef8
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue