From 266a199333e59d28a6a49a277f4599308836cc82 Mon Sep 17 00:00:00 2001 From: Jonathan Flueren Date: Wed, 29 Jun 2022 16:41:51 +0200 Subject: [PATCH] High quality image --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3a304b0..51c43cb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,7 @@ fn ray_color(r: &Ray, world: &HittableList, depth: u32) -> Color { fn random_world() -> HittableList { let mut world = HittableList::new(); - let material_ground = Arc::new(Lambertian::new(&Color::new(0.01, 0.01, 0.01))); + let material_ground = Arc::new(Lambertian::new(&Color::new(0.05, 0.05, 0.05))); world.add(Box::::new(Sphere::new( Point3::new(0.0, -50000.0, 0.0), @@ -146,9 +146,9 @@ fn main() { // Image let aspect_ratio = 16.0 / 9.0; - let image_width = 1000; + let image_width = 1920; let image_height = (image_width as f64 / aspect_ratio) as u32; - let samples_per_pixel = 100_u32; + let samples_per_pixel = 200_u32; let max_depth = 50; let vfov = 25.0;