File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 39103910 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
39113911 }
39123912
3913-
39143913 ray get_ray(int i, int j) const {
39153914 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
39163915 // Get a randomly-sampled camera ray for the pixel at location i,j, originating from
39293928 return ray(ray_origin, ray_direction);
39303929 }
39313930
3932- ...
3931+ vec3 pixel_sample_square() const {
3932+ ...
3933+ }
3934+
39333935
39343936 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
39353937 point3 defocus_disk_sample() const {
39403942 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
39413943
39423944 color ray_color(const ray& r, int depth, const hittable& world) const {
3943- ...
3945+ ...
3946+ }
39443947 };
39453948 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39463949 [Listing [camera-dof]: < kbd> [camera.h]</ kbd> Camera with adjustable depth-of-field (dof)]
You can’t perform that action at this time.
0 commit comments