Skip to content

Commit 3912593

Browse files
committed
Add missing listing highlight
1 parent 1da626e commit 3912593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,9 +2113,12 @@
21132113
) const override {
21142114
auto scatter_direction = rec.normal + random_unit_vector();
21152115

2116+
2117+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
21162118
// Catch degenerate scatter direction
21172119
if (scatter_direction.near_zero())
21182120
scatter_direction = rec.normal;
2121+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
21192122

21202123
scattered = ray(rec.p, scatter_direction);
21212124
attenuation = albedo;

0 commit comments

Comments
 (0)