- fix line backside textures mirrored

This commit is contained in:
Magnus Norddahl 2019-12-10 00:44:40 +01:00
parent bf68f1a851
commit 49af4a4b35
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}