Skip to content

Commit 8911adc

Browse files
committed
camera text: fix minor code format & highlighting
1 parent ed1e893 commit 8911adc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,6 +3365,7 @@
33653365
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
33663366
vec3 rd = lens_radius * random_in_unit_disk();
33673367
vec3 offset = u * rd.x() + v * rd.y();
3368+
33683369
return ray(
33693370
origin + offset,
33703371
lower_left_corner + s*horizontal + t*vertical - origin - offset

books/RayTracingTheNextWeek.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@
137137
ray get_ray(double s, double t) const {
138138
vec3 rd = lens_radius * random_in_unit_disk();
139139
vec3 offset = u * rd.x() + v * rd.y();
140+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
140141
const auto ray_time = random_double(0.0, 1.0);
142+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
141143

142144
return ray(
143145
origin + offset,

0 commit comments

Comments
 (0)