Skip to content

Commit

Permalink
[#4] Fix error from previous commit when I passed ray reference by re…
Browse files Browse the repository at this point in the history
…ference.
  • Loading branch information
Morozov-5F committed Nov 28, 2021
1 parent fd3052e commit 203f0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hittables/rt_instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static bool rt_instance_hit(const rt_hittable_t *hittable, const ray_t *ray, dou
vec3_add(&record->p, instance->offset);

vec3_t new_normal = rt_mat3_mul_vec3(&instance->transform_matrix_bb, &record->normal);
rt_hit_record_set_front_face(record, &ray, &new_normal);
rt_hit_record_set_front_face(record, ray, &new_normal);

return true;
}
Expand Down

0 comments on commit 203f0b5

Please sign in to comment.