Scene for baum.obj without antialiasing

This commit is contained in:
Jonathan Flueren 2022-07-19 16:30:14 +02:00
parent de559b02d7
commit 99277995be

View file

@ -267,22 +267,22 @@ fn main() {
let image_width = 1000; let image_width = 1000;
let image_height = (image_width as f64 / aspect_ratio) as u32; let image_height = (image_width as f64 / aspect_ratio) as u32;
let samples_per_pixel = 1_u32; let samples_per_pixel = 1_u32;
let max_depth = 50; let max_depth = 20;
let vfov = 50.0; let vfov = 80.0;
let lookfrom = Point3::new(-30.0, 20.0, -30.0); let lookfrom = Point3::new(3.0, 1.0, 3.0);
let lookat = Point3::new(0.0, 15.0, 0.0); let lookat = Point3::new(0.0, 0.2, 2.0);
let vup = Vec3::new(0.0, 1.0, 0.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; let aperture = 0.1;
// limit rayon multithreading thread count // limit rayon multithreading thread count
let thread_count = 4; // if 0, for each logical cpu core a thread wil be created let thread_count = 4; // if 0, for each logical cpu core a thread wil be created
if thread_count > 0 { 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 // World
// let world = random_world(); // let world = random_world();