From 3e2abbe9689f048718caed30781fef31046d344f Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 23 Feb 2025 20:19:10 +0000 Subject: [PATCH] Fix #18: Remove complanarity check between pass poly and target poly --- KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs index 74e6c5f..aaadc2b 100644 --- a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs +++ b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs @@ -226,7 +226,6 @@ public class PotentiallyVisibleSet // Could probably use poly center + radius to get an even better early out. var targetEdge = _edges[targetEdgeIdx]; if (visited.Contains(targetEdge.Destination) || - passPoly.IsCoplanar(targetEdge.Poly) || Math.Abs(MathUtils.DistanceFromNormalizedPlane(targetEdge.Poly.Plane, lightPos)) > maxRange) { continue;