aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 1a0b001..f1a627f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -59,9 +59,10 @@ pub fn random_scene(rng: &mut ThreadRng) -> scene::Scene {
}
fn main() {
- let image_width = 1200;
- let image_height = 800;
- let samples = 100;
+ let image_width = 400;
+ let image_height = 200;
+ let samples = 50;
+ let threads = 1;
let max_depth = 50;
let aspect_ratio = image_width as f64 / image_height as f64;
@@ -78,7 +79,7 @@ fn main() {
let camera = camera::Camera::new(&lookfrom, &lookat, &vup,
20.0 * PI / 180.0, aspect_ratio, aperture, dist_to_focus);
- render::render(&scene, camera, image_height, image_width, samples, max_depth, &mut rng);
+ render::render(&scene, &camera, image_height, image_width, samples, max_depth, threads);
eprintln!("\nDone")
}