Skip to content

Commit 84fad8b

Browse files
committed
Synchronize copies of material.h
1 parent 1a8c65b commit 84fad8b

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Change Log -- Ray Tracing in One Weekend
88
- Fix: Standardized naming for ray-t and time parameters (#746)
99
- Fix: `random_unit_vector()` was incorrect (#697)
1010
- 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`
1212

1313
### In One Weekend
1414

src/TheNextWeek/material.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
#include "texture.h"
1818

1919

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-
2720
class material {
2821
public:
2922
virtual color emitted(double u, double v, const point3& p) const {

src/TheRestOfYourLife/material.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
#include "texture.h"
1818

1919

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-
2720
struct scatter_record {
2821
ray specular_ray;
2922
bool is_specular;

0 commit comments

Comments
 (0)