fix 0px tall polygon aa

This commit is contained in:
Jaklyy 2023-12-22 15:07:57 -05:00
parent 521fc249a3
commit a1b3ace386
1 changed files with 8 additions and 0 deletions

View File

@ -1036,6 +1036,14 @@ void SoftRenderer::RenderPolygonScanline(const GPU& gpu, RendererPolygon* rp, s3
}
}
// quick hack to fix a minor bug.
// for some reason 0 pixel tall polygons have broken aa.
if (polygon->YBottom == polygon->YTop)
{
l_edgecov = 0;
r_edgecov = 0;
}
// interpolate attributes along Y
s32 rl = interp_start->Interpolate(vlcur->FinalColor[0], vlnext->FinalColor[0]);