mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Added a hack to offset the shadows of sprites a bit so there's no flickering at the base of the sprite.
git-svn-id: https://svn.eduke32.com/eduke32@280 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7394fefb54
commit
60d78a27f3
1 changed files with 10 additions and 0 deletions
|
@ -6363,6 +6363,16 @@ PALONLY:
|
||||||
//1024:tell MD2SPRITE.C to use Z-buffer hacks to hide overdraw issues
|
//1024:tell MD2SPRITE.C to use Z-buffer hacks to hide overdraw issues
|
||||||
tsprite[spritesortcnt].cstat |= (512+1024);
|
tsprite[spritesortcnt].cstat |= (512+1024);
|
||||||
}
|
}
|
||||||
|
else if(bpp > 8)
|
||||||
|
{
|
||||||
|
int ii;
|
||||||
|
|
||||||
|
ii = getangle(tsprite[spritesortcnt].x-ps[myconnectindex].posx,
|
||||||
|
tsprite[spritesortcnt].y-ps[myconnectindex].posy);
|
||||||
|
|
||||||
|
tsprite[spritesortcnt].x += sintable[(ii+2560)&2047]>>9;
|
||||||
|
tsprite[spritesortcnt].y += sintable[(ii+2048)&2047]>>9;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
spritesortcnt++;
|
spritesortcnt++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue