File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Change Log -- Ray Tracing in One Weekend
12
12
13
13
### _ The Next Week_
14
14
- Delete: remove unused u,v,w variables in initial ` perlin::noise() ` function (#684 )
15
+ - Fix: Listing 15: In ` bvh.h ` , add missing ` hittable_list.h ` include (#690 )
16
+ - Fix: Listing 33, 34, 38: Change implicit casts to explicit ones (#692 )
15
17
- Fix: Listing 70: Add missing ` bvh.h ` (#694 )
16
18
- Fix: Listing 70 and ` main.cc ` : Change a fuzz value of a metal sphere to 1.0 which is the maximum value (#694 )
17
19
Original file line number Diff line number Diff line change 862
862
863
863
#include "rtweekend.h"
864
864
#include "hittable.h"
865
+ #include "hittable_list.h"
865
866
866
867
867
868
class bvh_node : public hittable {
1591
1592
auto v = p.y() - floor(p.y());
1592
1593
auto w = p.z() - floor(p.z());
1593
1594
1594
- int i = floor(p.x());
1595
- int j = floor(p.y());
1596
- int k = floor(p.z());
1595
+ auto i = static_cast < int > ( floor(p.x() ));
1596
+ auto j = static_cast < int > ( floor(p.y() ));
1597
+ auto k = static_cast < int > ( floor(p.z() ));
1597
1598
double c[2][2][2];
1598
1599
1599
1600
for (int di=0; di < 2; di++)
1645
1646
w = w*w*(3-2*w);
1646
1647
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
1647
1648
1648
- int i = floor(p.x());
1649
- int j = floor(p.y());
1650
- int k = floor(p.z());
1649
+ auto i = static_cast < int > ( floor(p.x() ));
1650
+ auto j = static_cast < int > ( floor(p.y() ));
1651
+ auto k = static_cast < int > ( floor(p.z() ));
1651
1652
...
1652
1653
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653
1654
[Listing [perlin-smoothed]: < kbd> [perlin.h]</ kbd> Perlin smoothed]
1780
1781
auto v = p.y() - floor(p.y());
1781
1782
auto w = p.z() - floor(p.z());
1782
1783
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
1783
- int i = floor(p.x());
1784
- int j = floor(p.y());
1785
- int k = floor(p.z());
1784
+ auto i = static_cast < int > ( floor(p.x() ));
1785
+ auto j = static_cast < int > ( floor(p.y() ));
1786
+ auto k = static_cast < int > ( floor(p.z() ));
1786
1787
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
1787
1788
vec3 c[2][2][2];
1788
1789
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
Original file line number Diff line number Diff line change 53
53
- Phil Cristensen
54
54
- [Ronald Wotzlaw](https://github.com/ronaldfw)
55
55
- [Shaun P. Lee](https://github.com/shaunplee)
56
+ - [Shota Kawajiri](https://github.com/estshorter)
56
57
- Tatsuya Ogawa
57
58
- Thiago Ize
58
59
- Vahan Sosoyan
Original file line number Diff line number Diff line change 14
14
#include " rtweekend.h"
15
15
16
16
#include " hittable.h"
17
+ #include " hittable_list.h"
17
18
18
19
#include < algorithm>
19
20
You can’t perform that action at this time.
0 commit comments