From 5723b285f077d84cfd739f22b1091d026ba67ad8 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 22 Sep 2018 12:05:24 -0700 Subject: [PATCH] Note to self about time-bomb. --- rtiow/src/aabb.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rtiow/src/aabb.rs b/rtiow/src/aabb.rs index 98b8c9f..599da88 100644 --- a/rtiow/src/aabb.rs +++ b/rtiow/src/aabb.rs @@ -89,6 +89,7 @@ impl AABB { } pub fn hit_precompute(&self, r: Ray, t0: f32, t1: f32) -> bool { + // TODO(wathiede): this has bugs. let mut t_min = (self.bounds[r.sign[0]].x - r.origin.x) * r.inv_direction.x; let mut t_max = (self.bounds[1 - r.sign[0]].x - r.origin.x) * r.inv_direction.x; let t_y_min = (self.bounds[r.sign[0]].y - r.origin.y) * r.inv_direction.y;