This commit is contained in:
Bill Thiede 2018-09-22 12:08:26 -07:00
parent 0ff10e99dd
commit 08ea5ca089
2 changed files with 0 additions and 6 deletions

View File

@ -1,7 +1,6 @@
use rand;
use rand::Rng;
use bvh::BVH;
use camera::Camera;
use hitable::Hit;
use hitable_list::HitableList;

View File

@ -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::<f32>(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();