diff --git a/rtiow/src/scenes/book.rs b/rtiow/src/scenes/book.rs index 5fcdfb3..f61058e 100644 --- a/rtiow/src/scenes/book.rs +++ b/rtiow/src/scenes/book.rs @@ -1,7 +1,6 @@ use rand; use rand::Rng; -use bvh::BVH; use camera::Camera; use hitable::Hit; use hitable_list::HitableList; diff --git a/rtiow/src/scenes/test.rs b/rtiow/src/scenes/test.rs index 0a5cea3..09e7db0 100644 --- a/rtiow/src/scenes/test.rs +++ b/rtiow/src/scenes/test.rs @@ -1,8 +1,5 @@ use std::f32::consts::PI; -use rand; -use rand::Rng; - use camera::Camera; use hitable::Hit; use hitable_list::HitableList; @@ -39,8 +36,6 @@ pub fn new(opt: &Opt) -> Scene { ))]; let num_spheres = 6; let radius = 7.; - let mut rng = rand::thread_rng(); - let mut random = || rng.gen_range::(0., 1.); for i in 0..num_spheres { let c1 = radius * ((2. * PI) * (i as f32 / num_spheres as f32)).sin(); let c2 = radius * ((2. * PI) * (i as f32 / num_spheres as f32)).cos();