Skip to content

Commit

Permalink
Tweaked polygon obstruction detector rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed May 25, 2024
1 parent afaf0a4 commit 706ede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit 706ede9

Please sign in to comment.