From 02fedfc9653cb37219849de7dae14ae13d2f6c36 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 4 Aug 2021 17:21:03 +0200 Subject: Add translation and move center position from sphere --- src/world/hittable.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/world/hittable.rs') diff --git a/src/world/hittable.rs b/src/world/hittable.rs index 4fbd3d0..9713c7c 100644 --- a/src/world/hittable.rs +++ b/src/world/hittable.rs @@ -1,6 +1,7 @@ use crate::core::{Vector3f, Bound3f, Ray}; use crate::Float; use crate::material::Material; +use crate::world::Instancable; use std::ops::Deref; @@ -57,3 +58,5 @@ impl Deref for DynHittable { self.0.as_ref() } } + +impl Instancable for DynHittable {} -- cgit v1.2.3