latest update

This commit is contained in:
2023-01-30 17:18:16 +01:00
parent 899e8b7228
commit b764470c77
4 changed files with 34 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ fn ray_color(r: &Ray, world: &mut dyn Hittable, depth: i32) -> Color {
fn main() {
// Image
let aspect_ratio: f64 = 1.0 / 1.0;
let image_width: i32 = 1024;
let image_width: i32 = 512;
let image_height: i32 = (image_width as f64 / aspect_ratio as f64) as i32;
let samples_per_pixel: i32 = 100;
let max_depth: i32 = 4;