Skip to content

Commit f898540

Browse files
committed
Fix for-loop ellipses in code listings
Also add changelog entry for fixed light code introduction order.
1 parent ed166d2 commit f898540

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Change Log -- Ray Tracing in One Weekend
1212
### The Next Week
1313

1414
### The Rest of Your Life
15+
- Fix: Synchronize book and source for `cornell_box()` function.
16+
- Fix: Introduction of light code was introduced out of sequence (#738, #740)
1517

1618

1719
----------------------------------------------------------------------------------------------------

books/RayTracingTheRestOfYourLife.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,9 @@
21172117

21182118
color background(0,0,0);
21192119

2120-
for (int j ...) {
2121-
for (int i ...) {
2120+
for (int j = image_height-1; j >= 0; --j) {
2121+
std::cerr << "\rScanlines remaining: " << j << ' ' << std::flush;
2122+
for (int i = 0; i < image_width; ++i) {
21222123
...
21232124
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
21242125
pixel_color += ray_color(r, background, world, lights, max_depth);

0 commit comments

Comments
 (0)