From 0d81cbb9017cc1fed234be32a82841105a4df00c Mon Sep 17 00:00:00 2001 From: estshorter <1430311+estshorter@users.noreply.github.com> Date: Sat, 22 Aug 2020 10:08:01 +0900 Subject: [PATCH 1/2] Fix: Book2: Listing 70: Add missing bvh.h (#694) --- CHANGELOG.md | 1 + books/RayTracingTheNextWeek.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bdccbc6..e3e3a47b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Change Log -- Ray Tracing in One Weekend ### _The Next Week_ - Delete: remove unused u,v,w variables in initial `perlin::noise()` function (#684) + - Fix: Listing 70: Add missing `bvh.h` (#694) ---------------------------------------------------------------------------------------------------- diff --git a/books/RayTracingTheNextWeek.html b/books/RayTracingTheNextWeek.html index 39745a77..8a0a5ce5 100644 --- a/books/RayTracingTheNextWeek.html +++ b/books/RayTracingTheNextWeek.html @@ -3246,6 +3246,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)); From 6a71b9dc8bb1aaf726c4dddfd2227ed71e14ba9f Mon Sep 17 00:00:00 2001 From: estshorter <1430311+estshorter@users.noreply.github.com> Date: Sat, 22 Aug 2020 10:16:07 +0900 Subject: [PATCH 2/2] Fix: Book2: Listing 70 and main.cc: Change a fuzz value of a metal sphere to 1.0 which is the maximum value (#694) --- CHANGELOG.md | 1 + books/RayTracingTheNextWeek.html | 2 +- src/TheNextWeek/main.cc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3e3a47b..5e15f54a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Change Log -- Ray Tracing in One Weekend ### _The Next Week_ - Delete: remove unused u,v,w variables in initial `perlin::noise()` function (#684) - 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 8a0a5ce5..efec236e 100644 --- a/books/RayTracingTheNextWeek.html +++ b/books/RayTracingTheNextWeek.html @@ -3283,7 +3283,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));