Skip to content

Commit 6a71b9d

Browse files
committed
Fix: Book2: Listing 70 and main.cc: Change a fuzz value of a metal sphere to 1.0 which is the maximum value (#694)
1 parent 0d81cbb commit 6a71b9d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Change Log -- Ray Tracing in One Weekend
1313
### _The Next Week_
1414
- Delete: remove unused u,v,w variables in initial `perlin::noise()` function (#684)
1515
- Fix: Listing 70: Add missing `bvh.h` (#694)
16+
- Fix: Listing 70 and `main.cc`: Change a fuzz value of a metal sphere to 1.0 which is the maximum value (#694)
1617

1718

1819
----------------------------------------------------------------------------------------------------

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,7 @@
32833283

32843284
objects.add(make_shared<sphere>(point3(260, 150, 45), 50, make_shared<dielectric>(1.5)));
32853285
objects.add(make_shared<sphere>(
3286-
point3(0, 150, 145), 50, make_shared<metal>(color(0.8, 0.8, 0.9), 10.0)
3286+
point3(0, 150, 145), 50, make_shared<metal>(color(0.8, 0.8, 0.9), 1.0)
32873287
));
32883288

32893289
auto boundary = make_shared<sphere>(point3(360,150,145), 70, make_shared<dielectric>(1.5));

src/TheNextWeek/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ hittable_list final_scene() {
236236

237237
objects.add(make_shared<sphere>(point3(260, 150, 45), 50, make_shared<dielectric>(1.5)));
238238
objects.add(make_shared<sphere>(
239-
point3(0, 150, 145), 50, make_shared<metal>(color(0.8, 0.8, 0.9), 10.0)
239+
point3(0, 150, 145), 50, make_shared<metal>(color(0.8, 0.8, 0.9), 1.0)
240240
));
241241

242242
auto boundary = make_shared<sphere>(point3(360,150,145), 70, make_shared<dielectric>(1.5));

0 commit comments

Comments
 (0)