From 7205dbdc31833d17e7597a7f000458dcb5183cca Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 16 Feb 2023 15:12:28 +0100 Subject: [PATCH] Loosened tolerance for vertex equality a bit more because wow, floats are really inaccurate huh? Fixes light sampling issues on E4M6 and E4M7. --- bsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp.h b/bsp.h index 50d106c..22cb299 100644 --- a/bsp.h +++ b/bsp.h @@ -363,7 +363,7 @@ typedef struct World double m0 = p0.magnitude(); double m1 = p1.magnitude(); - if ((m0 * m1) <= 0.01) + if ((m0 * m1) <= 0.1) { // Point is on one of the vertices outFaces.push_back(face);