From f87a8b4934eee786c823b9f58e7346058287e1d5 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Tue, 29 Dec 2015 17:01:05 -0800 Subject: [PATCH] Forgot robustness adjustment in BBox/ray intersection code. --- src/bbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bbox.rs b/src/bbox.rs index 8126b19..5a58f5e 100644 --- a/src/bbox.rs +++ b/src/bbox.rs @@ -48,7 +48,7 @@ impl BBox { .max(t1[2].min(t2[2])); let hitt1 = (t1[0].max(t2[0])) .min(t1[1].max(t2[1])) - .min(t1[2].max(t2[2])); + .min(t1[2].max(t2[2])) * BBOX_MAXT_ADJUST; // Did we hit? return hitt0.max(0.0) <= hitt1.min(ray.max_t);