- rewrite screen triangle drawer to be more modular and better support the hwrenderer shaders

This commit is contained in:
Magnus Norddahl 2019-08-05 03:23:04 +02:00
commit f73470dcf4
4 changed files with 389 additions and 10 deletions

View file

@ -909,6 +909,7 @@ void PolyTriangleThreadData::DrawShadedTriangle(const ShadedTriVertex *const* ve
}
#endif
#if 0
// Keep varyings in -128 to 128 range if possible
// But don't do this for the skycap mode since the V texture coordinate is used for blending
if (numclipvert > 0 && drawargs.BlendMode() != TriBlendMode::Skycap)
@ -921,6 +922,7 @@ void PolyTriangleThreadData::DrawShadedTriangle(const ShadedTriVertex *const* ve
clippedvert[i].v -= newOriginV;
}
}
#endif
if (twosided && numclipvert > 2)
{