Skip to content

Commit 4ef2557

Browse files
committed
Some minor listing cleanup from book 1 progression
1 parent 5e4c61f commit 4ef2557

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3910,7 +3910,6 @@
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
@@ -3929,7 +3928,10 @@
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 {
@@ -3940,7 +3942,8 @@
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)]

0 commit comments

Comments
 (0)