Fix culling

This commit is contained in:
Miloslav Ciz 2025-02-03 20:06:52 +01:00
parent 2a84afa981
commit dfd1393dba

View file

@ -664,7 +664,8 @@ uint8_t _LCR_rendererCheckMapTriCover(const S3L_Index *t1, const S3L_Index *t2)
points2D[12] = LCR_renderer.mapVerts[3 * t3[freeVert] + coordX]; points2D[12] = LCR_renderer.mapVerts[3 * t3[freeVert] + coordX];
points2D[13] = LCR_renderer.mapVerts[3 * t3[freeVert] + coordY]; points2D[13] = LCR_renderer.mapVerts[3 * t3[freeVert] + coordY];
if (_LCR_rendererQuadCoversTri(points2D + 6,points2D)) if (_LCR_rendererQuadLooksConvex(points2D +6) &&
_LCR_rendererQuadCoversTri(points2D + 6,points2D))
{ {
result |= 1 << j; result |= 1 << j;
break; break;