mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-04 21:00:58 +00:00
- do y-flipping of wall textures correctly.
1.f - h is not correct for NPOT texures due to hpw they tile.
This commit is contained in:
parent
7446d0441b
commit
54eee347a6
1 changed files with 1 additions and 1 deletions
|
@ -743,7 +743,7 @@ void HWWall::DoTexture(HWDrawInfo* di, walltype* wal, walltype* refwall, float r
|
|||
{
|
||||
float h = hl + (hr - hl) * frac;
|
||||
h = (-(float)(refheight + (h * 256)) / ((th * 2048.0f) / (float)(wal->yrepeat))) + ypanning;
|
||||
if (wal->cstat & CSTAT_WALL_YFLIP) h = 1.f - h;
|
||||
if (wal->cstat & CSTAT_WALL_YFLIP) h = -h;
|
||||
return h;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue