mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
handle clipping like literally every hw renderer ever
This commit is contained in:
parent
53e6c360fd
commit
927b464b5a
1 changed files with 5 additions and 0 deletions
|
|
@ -259,6 +259,11 @@ static boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef,
|
||||||
//BP: we cannot use special tric in hardware mode because feet in ground caused by z-buffer
|
//BP: we cannot use special tric in hardware mode because feet in ground caused by z-buffer
|
||||||
if (rendermode != render_none) // not for psprite
|
if (rendermode != render_none) // not for psprite
|
||||||
spritecachedinfo[numspritelumps].topoffset += 4<<FRACBITS;
|
spritecachedinfo[numspritelumps].topoffset += 4<<FRACBITS;
|
||||||
|
|
||||||
|
// Idea, how about we do it like literally every hardware renderer ever?
|
||||||
|
if (rendermode == render_opengl)
|
||||||
|
spritecachedinfo[numspritelumps].topoffset += 5<<FRACBITS;
|
||||||
|
|
||||||
// Being selective with this causes bad things. :( Like the special stage tokens breaking apart.
|
// Being selective with this causes bad things. :( Like the special stage tokens breaking apart.
|
||||||
/*if (rendermode != render_none // not for psprite
|
/*if (rendermode != render_none // not for psprite
|
||||||
&& SHORT(patch.topoffset)>0 && SHORT(patch.topoffset)<SHORT(patch.height))
|
&& SHORT(patch.topoffset)>0 && SHORT(patch.topoffset)<SHORT(patch.height))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue