Fix #18: Remove complanarity check between pass poly and target poly

This commit is contained in:
Jarrod Doyle 2025-02-23 20:19:10 +00:00
parent 651243d91f
commit 3e2abbe968
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 0 additions and 1 deletions

View File

@ -226,7 +226,6 @@ public class PotentiallyVisibleSet
// Could probably use poly center + radius to get an even better early out. // Could probably use poly center + radius to get an even better early out.
var targetEdge = _edges[targetEdgeIdx]; var targetEdge = _edges[targetEdgeIdx];
if (visited.Contains(targetEdge.Destination) || if (visited.Contains(targetEdge.Destination) ||
passPoly.IsCoplanar(targetEdge.Poly) ||
Math.Abs(MathUtils.DistanceFromNormalizedPlane(targetEdge.Poly.Plane, lightPos)) > maxRange) Math.Abs(MathUtils.DistanceFromNormalizedPlane(targetEdge.Poly.Plane, lightPos)) > maxRange)
{ {
continue; continue;