- fix wrong particle Y offset

This commit is contained in:
Magnus Norddahl 2017-03-16 19:15:42 +01:00
parent 55b95e68db
commit 1f109a5deb
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ namespace swrenderer
auto viewport = thread->Viewport.get();
yscale = xscale; // YaspectMul is not needed for particles as they should always be square
ty = particle->Pos.Z - viewport->viewpoint.Pos.Z;
ty = (particle->Pos.Z - viewport->viewpoint.Pos.Z) * thread->Viewport->YaspectMul;
y1 = xs_RoundToInt(viewport->CenterY - (ty + psize) * yscale);
y2 = xs_RoundToInt(viewport->CenterY - (ty - psize) * yscale);