mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
Rework previous commit to use a little less floating point math
git-svn-id: https://svn.eduke32.com/eduke32@7369 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
17fa3ea5ff
commit
f31f31a17e
1 changed files with 3 additions and 2 deletions
|
@ -933,8 +933,9 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
|
||||||
m0.z *= f; a0.z *= f;
|
m0.z *= f; a0.z *= f;
|
||||||
|
|
||||||
k0 = (float) tspr->z;
|
k0 = (float) tspr->z;
|
||||||
k0 -= (tspr->yoffset*tspr->yrepeat)*4.f*m->bscale;
|
k0 -= ((tspr->yoffset * tspr->yrepeat) << 2) * m->bscale;
|
||||||
if (!(tspr->cstat&128)) k0 -= (m->piv.z*tspr->yrepeat)*4.f*m->bscale;
|
if (!(tspr->cstat & 128))
|
||||||
|
k0 -= (tspr->yrepeat << 2) * m->piv.z * m->bscale;
|
||||||
|
|
||||||
f = (65536.f*512.f) / ((float)xdimen*viewingrange);
|
f = (65536.f*512.f) / ((float)xdimen*viewingrange);
|
||||||
g = 32.f / ((float)xdimen*gxyaspect);
|
g = 32.f / ((float)xdimen*gxyaspect);
|
||||||
|
|
Loading…
Reference in a new issue