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 3910
3910
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
3911
3911
}
3912
3912
3913
-
3914
3913
ray get_ray(int i, int j) const {
3915
3914
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
3916
3915
// Get a randomly-sampled camera ray for the pixel at location i,j, originating from
3929
3928
return ray(ray_origin, ray_direction);
3930
3929
}
3931
3930
3932
- ...
3931
+ vec3 pixel_sample_square() const {
3932
+ ...
3933
+ }
3934
+
3933
3935
3934
3936
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
3935
3937
point3 defocus_disk_sample() const {
3940
3942
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
3941
3943
3942
3944
color ray_color(const ray& r, int depth, const hittable& world) const {
3943
- ...
3945
+ ...
3946
+ }
3944
3947
};
3945
3948
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3946
3949
[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