summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--servers/rendering/rendering_light_culler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/rendering_light_culler.h b/servers/rendering/rendering_light_culler.h
index 0bf975430b..b0437d2310 100644
--- a/servers/rendering/rendering_light_culler.h
+++ b/servers/rendering/rendering_light_culler.h
@@ -181,14 +181,14 @@ private:
}
// Prevent divide by zero.
- if (lc > 0.00001f) {
+ if (lc > 0.001f) {
// If the summed length of the smaller two
// sides is close to the length of the longest side,
// the points are colinear, and the triangle is near degenerate.
float ld = ((la + lb) - lc) / lc;
// ld will be close to zero for colinear tris.
- return ld < 0.00001f;
+ return ld < 0.001f;
}
// Don't create planes from tiny triangles,