From 706ede972209d1e82014c23290e95ed5ac379eb2 Mon Sep 17 00:00:00 2001 From: Dmitry Zolotukhin Date: Sat, 25 May 2024 03:39:42 +0200 Subject: [PATCH] Tweaked polygon obstruction detector rules. --- src/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.rs b/src/output.rs index d1a55da..d86fe99 100644 --- a/src/output.rs +++ b/src/output.rs @@ -328,7 +328,7 @@ impl DepthBuffer { // TODO: check if polygon obstructs other polygons? self.points_projection .val(point.x, point.y) - .map(|point_depth| depth - f64::EPSILON < point_depth) + .map(|point_depth| depth < point_depth) .unwrap_or(false) }) }