mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
- Wrap midtex support
This commit is contained in:
parent
c2fa360bbc
commit
8034793193
1 changed files with 6 additions and 2 deletions
|
@ -272,10 +272,14 @@ void RenderPolyWall::Render(const TriMatrix &worldToClip, const PolyClipPlane &c
|
||||||
|
|
||||||
// Masked walls clamp to the 0-1 range (no texture repeat)
|
// Masked walls clamp to the 0-1 range (no texture repeat)
|
||||||
if (Masked)
|
if (Masked)
|
||||||
|
{
|
||||||
|
bool wrap = (Line->flags & ML_WRAP_MIDTEX) || (Side->Flags & WALLF_WRAP_MIDTEX);
|
||||||
|
if (!wrap)
|
||||||
{
|
{
|
||||||
ClampHeight(vertices[0], vertices[3]);
|
ClampHeight(vertices[0], vertices[3]);
|
||||||
ClampHeight(vertices[1], vertices[2]);
|
ClampHeight(vertices[1], vertices[2]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PolyDrawArgs args;
|
PolyDrawArgs args;
|
||||||
args.SetLight(GetColorTable(Line->frontsector->Colormap, Line->frontsector->SpecialColors[sector_t::walltop]), GetLightLevel(), PolyRenderer::Instance()->Light.WallGlobVis(foggy), false);
|
args.SetLight(GetColorTable(Line->frontsector->Colormap, Line->frontsector->SpecialColors[sector_t::walltop]), GetLightLevel(), PolyRenderer::Instance()->Light.WallGlobVis(foggy), false);
|
||||||
|
|
Loading…
Reference in a new issue