We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da626e commit 3912593Copy full SHA for 3912593
books/RayTracingInOneWeekend.html
@@ -2113,9 +2113,12 @@
2113
) const override {
2114
auto scatter_direction = rec.normal + random_unit_vector();
2115
2116
+
2117
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
2118
// Catch degenerate scatter direction
2119
if (scatter_direction.near_zero())
2120
scatter_direction = rec.normal;
2121
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2122
2123
scattered = ray(rec.p, scatter_direction);
2124
attenuation = albedo;
0 commit comments