Note to self about time-bomb.

This commit is contained in:
Bill Thiede 2018-09-22 12:05:24 -07:00
parent 78da1c6441
commit 5723b285f0

View File

@ -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;