diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b45aeac..5b910ba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ Change Log -- Ray Tracing in One Weekend - Fix: Listing 15: In `bvh.h`, add missing `hittable_list.h` include (#690) - Fix: Listing 33, 34, 38: Change implicit casts to explicit ones (#692) - Fix: Listing 40: Change `perlin.h` in the caption to `texture.h` (#698) + - Fix: Listing 70: Add missing `bvh.h` (#694) + - Fix: Listing 70 and `main.cc`: Change a fuzz value of a metal sphere to 1.0 which is the maximum value (#694) ---------------------------------------------------------------------------------------------------- diff --git a/books/RayTracingTheNextWeek.html b/books/RayTracingTheNextWeek.html index a2804715..1dba0c03 100644 --- a/books/RayTracingTheNextWeek.html +++ b/books/RayTracingTheNextWeek.html @@ -3247,6 +3247,10 @@ why we get caustics and subsurface for free. It’s a double-edged design decision. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ + ... + #include "bvh.h" + ... + hittable_list final_scene() { hittable_list boxes1; auto ground = make_shared(color(0.48, 0.83, 0.53)); @@ -3280,7 +3284,7 @@ objects.add(make_shared(point3(260, 150, 45), 50, make_shared(1.5))); objects.add(make_shared( - point3(0, 150, 145), 50, make_shared(color(0.8, 0.8, 0.9), 10.0) + point3(0, 150, 145), 50, make_shared(color(0.8, 0.8, 0.9), 1.0) )); auto boundary = make_shared(point3(360,150,145), 70, make_shared(1.5)); diff --git a/src/TheNextWeek/main.cc b/src/TheNextWeek/main.cc index cbd40ad7..1ff0094e 100644 --- a/src/TheNextWeek/main.cc +++ b/src/TheNextWeek/main.cc @@ -236,7 +236,7 @@ hittable_list final_scene() { objects.add(make_shared(point3(260, 150, 45), 50, make_shared(1.5))); objects.add(make_shared( - point3(0, 150, 145), 50, make_shared(color(0.8, 0.8, 0.9), 10.0) + point3(0, 150, 145), 50, make_shared(color(0.8, 0.8, 0.9), 1.0) )); auto boundary = make_shared(point3(360,150,145), 70, make_shared(1.5));