File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 3365
3365
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
3366
3366
vec3 rd = lens_radius * random_in_unit_disk();
3367
3367
vec3 offset = u * rd.x() + v * rd.y();
3368
+
3368
3369
return ray(
3369
3370
origin + offset,
3370
3371
lower_left_corner + s*horizontal + t*vertical - origin - offset
Original file line number Diff line number Diff line change 137
137
ray get_ray(double s, double t) const {
138
138
vec3 rd = lens_radius * random_in_unit_disk();
139
139
vec3 offset = u * rd.x() + v * rd.y();
140
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
140
141
const auto ray_time = random_double(0.0, 1.0);
142
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
141
143
142
144
return ray(
143
145
origin + offset,
You can’t perform that action at this time.
0 commit comments