diff options
author | Julian T <julian@jtle.dk> | 2021-08-04 17:21:03 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-08-04 17:21:03 +0200 |
commit | 02fedfc9653cb37219849de7dae14ae13d2f6c36 (patch) | |
tree | d76c804f6fcd1d8c9aa036251843198bf78eadd2 /src/world/hittable.rs | |
parent | 351d9132c0b2c54dfa9f50bfe328d25ccf059cea (diff) |
Add translation and move center position from sphere
Diffstat (limited to 'src/world/hittable.rs')
-rw-r--r-- | src/world/hittable.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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 {} |