diff --git a/src/main.rs b/src/main.rs index efa4c5f..207a2af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -267,22 +267,22 @@ fn main() { let image_width = 1000; let image_height = (image_width as f64 / aspect_ratio) as u32; let samples_per_pixel = 1_u32; - let max_depth = 50; + let max_depth = 20; - let vfov = 50.0; - let lookfrom = Point3::new(-30.0, 20.0, -30.0); - let lookat = Point3::new(0.0, 15.0, 0.0); + let vfov = 80.0; + let lookfrom = Point3::new(3.0, 1.0, 3.0); + let lookat = Point3::new(0.0, 0.2, 2.0); let vup = Vec3::new(0.0, 1.0, 0.0); - let dist_to_focus = 40.0; + let dist_to_focus = 3.0; let aperture = 0.1; // limit rayon multithreading thread count let thread_count = 4; // if 0, for each logical cpu core a thread wil be created if thread_count > 0 { - env::set_var("RAYON_NUM_THREADS", "4"); + env::set_var("RAYON_NUM_THREADS", thread_count.to_string()); } - let world = from_obj("obj/Lowpoly_tree_sample copy.obj"); + let world = from_obj("obj/baum.obj"); // World // let world = random_world();