Fix culling
This commit is contained in:
parent
2a84afa981
commit
dfd1393dba
1 changed files with 3 additions and 2 deletions
|
@ -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[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;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue