Fix yet another culling bug

This commit is contained in:
Miloslav Ciz 2025-03-26 16:04:38 +01:00
parent 314f27c097
commit c992ddeb3f
4 changed files with 68 additions and 4 deletions

View file

@ -579,11 +579,10 @@ int _LCR_rendererQuadCoversTri(const S3L_Unit quad[8], const S3L_Unit tri[6])
quad[(2 * (j + k)) % 8 + 1],
tri[2 * i],
tri[2 * i + 1]);
winds |= (w > 0) | ((w < 0) << 1);
}
if (winds != 3) // no opposite winds?
if (winds != 3 && winds != 0) // no opposite winds and at least 1 non-0?
{
covered = 1;
break;