Skip to content

Commit bcb99f5

Browse files
committed
Fix refs to random_in_hemisphere
These should be random_on_hemisphere. Resolves #1198
1 parent 319ea9e commit bcb99f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,7 @@
22592259
return -on_unit_sphere;
22602260
}
22612261
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2262-
[Listing [random-in-hemisphere]: <kbd>[vec3.h]</kbd> The random_in_hemisphere() function]
2262+
[Listing [random-in-hemisphere]: <kbd>[vec3.h]</kbd> The random_on_hemisphere() function]
22632263

22642264
</div>
22652265

books/RayTracingTheRestOfYourLife.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@
18051805
bool scatter(const ray& r_in, const hit_record& rec, color& attenuation, ray& scattered)
18061806
const override {
18071807
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
1808-
auto scatter_direction = random_in_hemisphere(rec.normal);
1808+
auto scatter_direction = random_on_hemisphere(rec.normal);
18091809
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
18101810

18111811
// Catch degenerate scatter direction

0 commit comments

Comments
 (0)