diff --git a/src/ray.rs b/src/ray.rs index 197f0c5..db7b203 100644 --- a/src/ray.rs +++ b/src/ray.rs @@ -1,11 +1,15 @@ #![allow(dead_code)] +use std; + use math::{Vector, Point, Matrix4x4}; #[derive(Debug, Copy, Clone)] pub struct Ray { pub orig: Point, pub dir: Vector, + pub max_t: f32, + pub time: f32, } impl Ray { @@ -13,6 +17,8 @@ impl Ray { Ray { orig: orig, dir: dir, + max_t: std::f32::INFINITY, + time: 0.0, } }