Skip to content

Commit 9a2acc5

Browse files
authored
Merge pull request #776 from RayTracing/fix-768
Fix listing 58 syntax error
2 parents 7a396c0 + 7f3f794 commit 9a2acc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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
### In One Weekend
1414
- Change: Wrote brief explanation waving away negative t values in initial normal sphere
1515
- Fix: Catch cases where `lambertian::scatter()` yields degenerate scatter rays (#619)
16+
- Fix: Syntax error in listing 58 (Dielectric material class with reflection) (#768)
1617

1718
### The Next Week
1819
- Fix: Catch cases where `lambertian::scatter()` yields degenerate scatter rays (#619)

books/RayTracingInOneWeekend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@
25762576
bool cannot_refract = refraction_ratio * sin_theta > 1.0;
25772577
vec3 direction;
25782578

2579-
if (cannot_refract) {
2579+
if (cannot_refract)
25802580
direction = reflect(unit_direction, rec.normal);
25812581
else
25822582
direction = refract(unit_direction, rec.normal, refraction_ratio);

0 commit comments

Comments
 (0)