Browse Source

Loosened tolerance for vertex equality a bit more because wow, floats are really inaccurate huh? Fixes light sampling issues on E4M6 and E4M7.

master
Nico de Poel 3 years ago
parent
commit
7205dbdc31
  1. 2
      bsp.h

2
bsp.h

@ -363,7 +363,7 @@ typedef struct World
double m0 = p0.magnitude(); double m0 = p0.magnitude();
double m1 = p1.magnitude(); double m1 = p1.magnitude();
if ((m0 * m1) <= 0.01)
if ((m0 * m1) <= 0.1)
{ {
// Point is on one of the vertices // Point is on one of the vertices
outFaces.push_back(face); outFaces.push_back(face);

Loading…
Cancel
Save