File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct hit_record {
23
23
double t;
24
24
bool front_face;
25
25
26
- void set_face_normal (const ray& r, const vec3& outward_normal) {
26
+ inline void set_face_normal (const ray& r, const vec3& outward_normal) {
27
27
front_face = dot (r.direction (), outward_normal) < 0 ;
28
28
normal = front_face ? outward_normal :-outward_normal;
29
29
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct hit_record {
34
34
double v;
35
35
bool front_face;
36
36
37
- void set_face_normal (const ray& r, const vec3& outward_normal) {
37
+ inline void set_face_normal (const ray& r, const vec3& outward_normal) {
38
38
front_face = dot (r.direction (), outward_normal) < 0 ;
39
39
normal = front_face ? outward_normal :-outward_normal;
40
40
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct hit_record {
34
34
double v;
35
35
bool front_face;
36
36
37
- void set_face_normal (const ray& r, const vec3& outward_normal) {
37
+ inline void set_face_normal (const ray& r, const vec3& outward_normal) {
38
38
front_face = dot (r.direction (), outward_normal) < 0 ;
39
39
normal = front_face ? outward_normal :-outward_normal;
40
40
}
You can’t perform that action at this time.
0 commit comments