From 99277995be69df383f448b8c808bcb3e1e862294 Mon Sep 17 00:00:00 2001 From: JonOfUs Date: Tue, 19 Jul 2022 16:30:14 +0200 Subject: [PATCH] Scene for baum.obj without antialiasing --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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();