diff options
Diffstat (limited to 'racer-tracer/src/geometry.rs')
| -rw-r--r-- | racer-tracer/src/geometry.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/racer-tracer/src/geometry.rs b/racer-tracer/src/geometry.rs index 1cc7e28..78e0259 100644 --- a/racer-tracer/src/geometry.rs +++ b/racer-tracer/src/geometry.rs @@ -11,11 +11,11 @@ pub struct HitRecord { pub normal: Vec3, pub t: f64, pub front_face: bool, - pub material: Arc<Box<dyn Material + Send + Sync>>, + pub material: Arc<Box<dyn Material>>, } impl HitRecord { - fn new(point: Vec3, t: f64, material: Arc<Box<dyn Material + Send + Sync>>) -> Self { + fn new(point: Vec3, t: f64, material: Arc<Box<dyn Material>>) -> Self { Self { point, normal: Vec3::default(), @@ -35,7 +35,7 @@ impl HitRecord { } } -pub trait Hittable { +pub trait Hittable: Send + Sync { //pub trait Hittable { fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option<HitRecord>; } |
