diff options
author | Julian T <julian@jtle.dk> | 2021-02-07 14:25:06 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-07 14:26:20 +0100 |
commit | 33e747fa1c0957546c10e4d7b490ac7fbb0fd2d2 (patch) | |
tree | 515b2b2e017329cbcada60e898fb5795fbceb5cd /src/scene/shapes/sphere.rs | |
parent | a43ab40a75e9d4c6ee3fbdd583bc93574db19124 (diff) |
Abstracted lambertian into material
Diffstat (limited to 'src/scene/shapes/sphere.rs')
-rw-r--r-- | src/scene/shapes/sphere.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scene/shapes/sphere.rs b/src/scene/shapes/sphere.rs index acca2b7..3f07b9e 100644 --- a/src/scene/shapes/sphere.rs +++ b/src/scene/shapes/sphere.rs @@ -2,8 +2,7 @@ //! //! Spheres are relatively easy to calculate intersections between use crate::Float; -use crate::core::{Ray, Vector3f}; -use crate::scene::{Hittable, Intersection}; +use crate::core::{Ray, Vector3f, Hittable, Intersection}; pub struct Sphere { radius: Float, |