this repo has no description

reset in one weekend scene to original scene (with moving spheres)

+7 -7
results/ray-tracing-in-one-weekend-moving-spheres.png

This is a binary file and will not be displayed.

+7 -7
src/scences/in_one_weekend.zig
··· 19 19 material_ground.* = Material.initLambertianS(zm.f32x4(0.5, 0.5, 0.5, 1.0)); 20 20 try world.add(Hittable.initSphere("Ground", Sphere.init(zm.f32x4(0, -1000, 0, 0), 1000, material_ground))); 21 21 22 - const a_max = 30; 23 - const b_max = 30; 24 - const c = 1.7; 22 + const a_max = 11; 23 + const b_max = 11; 24 + const c = 1; 25 25 26 26 var a: isize = -a_max; 27 27 while (a < a_max) : (a += 1) { ··· 75 75 76 76 return .{ .allocator = allocator, .world = world, .camera = .{ 77 77 .aspect_ratio = 16.0 / 9.0, 78 - .image_width = 400, 79 - .samples_per_pixel = 50, 78 + .image_width = 1200, 79 + .samples_per_pixel = 500, 80 80 .max_depth = 50, 81 81 82 82 .vfov = 20, 83 - .look_from = zm.f32x4(20, 6, 6, 0), 83 + .look_from = zm.f32x4(13, 2, 3, 0), 84 84 .look_at = zm.f32x4(0, 0, 0, 0), 85 85 86 86 .defocus_angle = 0.6, 87 - .focus_dist = 18, 87 + .focus_dist = 10, 88 88 } }; 89 89 } 90 90