Skip to content

Commit 89635df

Browse files
authored
Merge pull request #200 from RayTracing/tdb/if_refract_braces
Tdb/if refract braces
2 parents ef89561 + 8efa229 commit 89635df

File tree

2 files changed

+111
-5
lines changed

2 files changed

+111
-5
lines changed

CHANGELOG.md

Lines changed: 108 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,121 @@
11
Change Log
22
================================================================================
33

4+
v2.0.0 (2019-09-26)
5+
---------------------
6+
Common
7+
- Add: Created single monolithic raytracing.github.io repo
8+
- Delete: Deprecated existing _InOneWeekend_, _TheNextWeek_, _TheRestOfYourLife_ repos
9+
- Change: Moved existing _InOneWeekend_, _TheNextWeek_, _TheRestOfYourLife_ content to io repo
10+
- Add: CHANGELOG.md
11+
- Add: CONTRIBUTING.md
12+
- Add: COPYING.txt
13+
- Add: README.md
14+
- Change: License change to CC0 in COPYING.txt
15+
- Add: raytracing.github.io links to all the three books
16+
- Change: Web links have been changed to new locations
17+
- Add: Links to Kindle version of the books
18+
- Add: CSS for body of the text
19+
- Add: CSS for images
20+
- Add: CSS for code blocks
21+
- Add: CSS for highlighting of text in code blocks
22+
- Add: CSS for Table of Contents
23+
- Add: CSS for the print variant of the books
24+
- Change: All instances of `hitable` have become `hittable`
25+
- Change: Replaced `drand48()` with portable `random_double` number generation
26+
- Change: Rewrote vec3.h `cross` function for clarity
27+
28+
29+
_Ray Tracing In One Weekend_
30+
- Add: README.md
31+
- Add: Source README.md
32+
- Add: Markdeep page created for entire body of text
33+
- Add: Markdeep MathJax created for formulae and equations for body of text
34+
- Add: raytracing.github.io/books/RayTracingInOneWeekend.html
35+
- Change: Text, Chapter 0 Overview has become Chapter 1, all subsequent chapters incremented
36+
- Change: Text, Syntax highlighting of source modifications
37+
- Change: Text, Chapter 3, Reorder include files in code blocks to match src conventions
38+
- Change: Text, Chapter 3, Consistent use of spaces in code blocks
39+
- Change: Text, Chapter 3, Reordered `vec3` class functions to + - * /
40+
- Change: Text, Chapter 4, Reorder include files in code blocks to match src conventions
41+
- Change: Text, Chapter 6, Reorder include files in code blocks to match src conventions
42+
- Change: Text, Chapter 6, Consistent use of spaces in code blocks
43+
- Fix: Text, Chapter 7, Add `#include "random.h"` in code blocks
44+
- Change: Text, Chapter 7, Consistent use of spaces in code blocks
45+
- Change: Text, Chapter 9, Consistent use of spaces in code blocks
46+
- Change: Text, Chapter 9, Put function signatures and `{` on the same line
47+
- Fix: Text, Chapter 10, Added metal fuzziness parameter for initial dielectric
48+
- Change: Text, Chapter 10, Consistent use of spaces in code blocks
49+
- Change: Text, Chapter 10, Put function signatures and `{` on the same line
50+
- Change: Text, Chapter 11, Consistent use of spaces in code blocks
51+
- Fix: Text, Chapter 13, Added metal fuzziness parameter
52+
- Change: Text, Chapter 13, Put function signatures and `{` on the same line
53+
- Delete: Code, `vec3 p = r.point_at_parameter(2.0);` in main.cc
54+
- Delete: Code, Removed extraneous `;` from `vec3::&operator[]` signature
55+
56+
57+
_Ray Tracing: The Next Week_
58+
- Add: README.md
59+
- Add: Source README.md
60+
- Add: Markdeep page created for entire body of text
61+
- Add: Markdeep MathJax created for formulae and equations for body of text
62+
- Add: raytracing.github.io/books/RayTracingTheNextWeek.html
63+
- Add: Earth map picture for use in rendering
64+
- Change: Text, Chapter 0 Overview has become Chapter 1, all subsequent chapters incremented
65+
- Change: Text, Syntax highlighting of source modifications
66+
- Fix: Text, Chapter 2, The `lambertian` class definition now uses `vec3` instead of `texture`
67+
- Change: Text, Chapter 2, Consistent use of spaces in code blocks
68+
- Change: Text, Chapter 3, Consistent use of spaces in code blocks
69+
- Change: Text, Chapter 4, Consistent use of spaces in code blocks
70+
- Change: Text, Chapter 5, Consistent use of spaces in code blocks
71+
- Change: Text, Chapter 5, added "texture" to "We can use that texture on some spheres"
72+
- Change: Text, Chapter 7, Consistent use of spaces in code blocks
73+
- Change: Text, Chapter 7, "This is yz and xz" changed to "This is xz and yz"
74+
- Fix: Text, Chapter 7, Changed `cornell_box` hittable array size to 5
75+
- Change: Text, Chapter 8, Changed "And the changes to Cornell is" to "... Cornell are"
76+
- Change: Text, Chapter 9, Changed short `if` statements to two lines for Consistency
77+
- Change: Text, Chapter 10, Consistent use of spaces in code blocks
78+
- Change: Code and Text, Chapter 9, cleaned up implementation of `constant_medium::hit`
79+
- Change: Code and Text, Chapter 9, Rewrote debug functionality in `constant_medium::hit`
80+
- Fix: Code and Text, Chapter 3, Changed `List[0]` to `List[i]` in `hittable_list::bounding_box()`
81+
- Fix: Code and Text, Chapter 3, Replaced `fmax` and `fmin` with `ffmax` and `ffmin`
82+
- Fix: Code, Add missing headers to constant_medium.h to fix g++ compiler error
83+
84+
85+
_Ray Tracing: The Rest Of Your Life_
86+
- Add: README.md
87+
- Add: Source README.md
88+
- Add: Markdeep page created for entire body of text
89+
- Add: Markdeep MathJax created for formulae and equations for body of text
90+
- Add: raytracing.github.io/books/RayTracingTheRestOfYourLife.html
91+
- Change: Text, Chapter 0 Overview has become Chapter 1, all subsequent chapters incremented
92+
- Fix: Text, Chapter order starting from chapter 2
93+
- Fix: Text, Renamed figures and images to match new chapter numbering
94+
- Change: Text, Syntax highlighting of source modifications
95+
- Change: Text, Chapter 2, Reorder include files in code blocks to match src conventions
96+
- Change: Text, Chapter 3, Reorder include files in code blocks to match src conventions
97+
- Fix: Text, Chapter 4, Rewrote formula for "Color" to "Color = A * color(direction"
98+
- Change: Text, Chapter 6, Consistent use of spaces in code blocks
99+
- Change: Text, Chapter 6, Consistent use of spaces in code blocks
100+
- Change: Text, Chapter 8, Changed calculation of `a` axis to pseudocode
101+
- Change: Text, Chapter 8, Consistent use of spaces in code blocks
102+
- Fix: Code and Text, Chapter 6, `material::scattering_pdf` now returns type float
103+
- Fix: Code and Text, Chapter 6, removal of factor of 2 to `random_cosine_direction` calculation
104+
105+
4106
v1.123.0 (2018-08-26)
5107
-----------------------
6-
- First GitHub release of _Ray Tracing: The Rest Of Your Life_, bundled with source code.
108+
_Ray Tracing: The Rest Of Your Life_
109+
- Add: First GitHub release.
7110

8111

9112
v1.54.0 (2018-08-26)
10113
----------------------
11-
- First GitHub release of _Ray Tracing In One Weekend_, bundled with source code.
114+
_Ray Tracing In One Weekend_
115+
- Add: First GitHub release.
12116

13117

14118
v1.42.0 (2018-08-26)
15119
----------------------
16-
- First GitHub release of _Ray Tracing: The Next Week_, bundled with source code.
17-
120+
_Ray Tracing: The Next Week_
121+
- Add: First GitHub release.

books/RayTracingInOneWeekend.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,10 @@
14701470
ni_over_nt = 1.0 / ref_idx;
14711471
}
14721472

1473-
if (refract(r_in.direction(), outward_normal, ni_over_nt, refracted))
1473+
if (refract(r_in.direction(), outward_normal, ni_over_nt, refracted)) {
1474+
14741475
scattered = ray(rec.p, refracted);
1476+
}
14751477
else {
14761478
scattered = ray(rec.p, reflected);
14771479
return false;

0 commit comments

Comments
 (0)