mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- fix line backside textures mirrored
This commit is contained in:
parent
bf68f1a851
commit
49af4a4b35
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,12 @@ namespace swrenderer
|
|||
t2 = (lineseg->v2->fY() - line->v1->fY()) / line->delta.Y;
|
||||
}
|
||||
|
||||
if (line->sidedef[0] != lineseg->sidedef)
|
||||
{
|
||||
t1 = 1.0f - t1;
|
||||
t2 = 1.0f - t2;
|
||||
}
|
||||
|
||||
tx1 = t1 + tx1 * (t2 - t1);
|
||||
tx2 = t1 + tx2 * (t2 - t1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue