From c5cbeddcd5617958ec35a6d491c7fd9db1acdb37 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 4 Jan 2025 21:04:23 +0000 Subject: [PATCH] Fix incorrect classification of front/back --- KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs index 96b49ca..05bda54 100644 --- a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs +++ b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs @@ -271,8 +271,8 @@ public class PotentiallyVisibleSet var distance = MathUtils.DistanceFromPlane(plane, poly.Vertices[i]); distances[i] = distance; sides[i] = distance switch { - > MathUtils.Epsilon => Side.Front, - <-MathUtils.Epsilon => Side.Back, + > MathUtils.Epsilon => Side.Back, + <-MathUtils.Epsilon => Side.Front, _ => Side.On, }; counts[(int)sides[i]]++;