Skip to content

Commit b4d70fe

Browse files
authored
Merge branch 'dev-patch' into rtweekend-include
2 parents 39026fb + e5d64a1 commit b4d70fe

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ Change Log -- Ray Tracing in One Weekend
44
# v3.2.1 (in progress)
55

66
### _In One Weekend_
7+
- Delete: remove premature `cstdlib` include; not needed until we use `rand()` (#687)
78
- Fix: replace old anti-alias result image with before-and-after image (#679)
89
- Fix: Listing 29: Added missing `rtweekend.h` include (#691)
10+
- Fix: undefined `vup` variable in camera definition (#686)
11+
12+
### _The Next Week_
13+
- Delete: remove unused u,v,w variables in initial `perlin::noise()` function (#684)
914

1015

1116
----------------------------------------------------------------------------------------------------
@@ -221,7 +226,7 @@ adopting, but may warrant comparison with any current projects.
221226

222227
### Common
223228
- Fix: Display rendered images as pixelated instead of smoothed (#179)
224-
- Deleted: delete old README files specific to each book (#410)
229+
- Delete: delete old README files specific to each book (#410)
225230

226231
### _In One Weekend_
227232
- Fix: Remove duplicated text and reword on the camera up vector (#420)
@@ -317,7 +322,7 @@ patch-level (fix) changes and some minor-level (addition) changes.
317322
### _The Rest of Your Life_
318323
- Change: Improved naming of auxilliary programs in _The Rest of Your Life_ source
319324
- Fix: Delete unused variable `p` in main() (#317)
320-
- Deleted: Several unused source files from `src/TheRestOfYourLife`
325+
- Delete: Several unused source files from `src/TheRestOfYourLife`
321326

322327

323328
----------------------------------------------------------------------------------------------------

books/RayTracingInOneWeekend.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,6 @@
11831183
#define RTWEEKEND_H
11841184

11851185
#include <cmath>
1186-
#include <cstdlib>
11871186
#include <limits>
11881187
#include <memory>
11891188

@@ -2848,7 +2847,7 @@
28482847
And we can change field of view:
28492848

28502849
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2851-
camera cam(point3(-2,2,1), point3(0,0,-1), vup, 20, aspect_ratio);
2850+
camera cam(point3(-2,2,1), point3(0,0,-1), vec3(0,1,0), 20, aspect_ratio);
28522851
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28532852
[Listing [change-field-view]: <kbd>[main.cc]</kbd> Change field of view]
28542853

books/RayTracingTheNextWeek.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[Peter Shirley][]
88
edited by [Steve Hollasch][] and [Trevor David Black][]
99
<br>
10-
Version 3.2.0, 2020-07-18
10+
Version 3.2.1, 2020-XX-XX
1111
<br>
1212
Copyright 2018-2020 Peter Shirley. All rights reserved.
1313

@@ -1445,10 +1445,6 @@
14451445
}
14461446

14471447
double noise(const point3& p) const {
1448-
auto u = p.x() - floor(p.x());
1449-
auto v = p.y() - floor(p.y());
1450-
auto w = p.z() - floor(p.z());
1451-
14521448
auto i = static_cast<int>(4*p.x()) & 255;
14531449
auto j = static_cast<int>(4*p.y()) & 255;
14541450
auto k = static_cast<int>(4*p.z()) & 255;
@@ -1590,10 +1586,10 @@
15901586
public:
15911587
...
15921588
double noise(point3 vec3& p) const {
1589+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
15931590
auto u = p.x() - floor(p.x());
15941591
auto v = p.y() - floor(p.y());
15951592
auto w = p.z() - floor(p.z());
1596-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
15971593

15981594
int i = floor(p.x());
15991595
int j = floor(p.y());
@@ -3358,8 +3354,8 @@
33583354
- **Title (book)**: “Ray Tracing: The Next Week”
33593355
- **Author**: Peter Shirley
33603356
- **Editors**: Steve Hollasch, Trevor David Black
3361-
- **Version/Edition**: v3.2.0
3362-
- **Date**: 2020-07-18
3357+
- **Version/Edition**: v3.2.1
3358+
- **Date**: 2020-XX-XX
33633359
- **URL (series)**: https://raytracing.github.io/
33643360
- **URL (book)**: https://raytracing.github.io/books/RayTracingTheNextWeek.html
33653361

0 commit comments

Comments
 (0)