File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Change Log -- Ray Tracing in One Weekend
8
8
- Fix: Standardized naming for ray-t and time parameters (#746 )
9
9
- Fix: ` random_unit_vector() ` was incorrect (#697 )
10
10
- Fix: Synchronize text and copies of ` hittable.h `
11
- - Fix: Synchronize copies of ` hittable_list.h `
11
+ - Fix: Synchronize copies of ` hittable_list.h ` , ` material.h `
12
12
13
13
### In One Weekend
14
14
Original file line number Diff line number Diff line change 17
17
#include " texture.h"
18
18
19
19
20
- double schlick (double cosine, double ref_idx) {
21
- auto r0 = (1 -ref_idx) / (1 +ref_idx);
22
- r0 = r0*r0;
23
- return r0 + (1 -r0)*pow ((1 - cosine),5 );
24
- }
25
-
26
-
27
20
class material {
28
21
public:
29
22
virtual color emitted (double u, double v, const point3& p) const {
Original file line number Diff line number Diff line change 17
17
#include " texture.h"
18
18
19
19
20
- double schlick (double cosine, double ref_idx) {
21
- auto r0 = (1 -ref_idx) / (1 +ref_idx);
22
- r0 = r0*r0;
23
- return r0 + (1 -r0)*pow ((1 - cosine),5 );
24
- }
25
-
26
-
27
20
struct scatter_record {
28
21
ray specular_ray;
29
22
bool is_specular;
You can’t perform that action at this time.
0 commit comments