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
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
Original file line number Diff line number Diff line change 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-
2720class material {
2821 public:
2922 virtual color emitted (double u, double v, const point3& p) const {
Original file line number Diff line number Diff line change 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-
2720struct scatter_record {
2821 ray specular_ray;
2922 bool is_specular;
You can’t perform that action at this time.
0 commit comments