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;