Fix incorrect classification of front/back

This commit is contained in:
Jarrod Doyle 2025-01-04 21:04:23 +00:00
parent 74228a2851
commit c5cbeddcd5
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 2 deletions

View File

@ -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]]++;