Skip to content
Snippets Groups Projects
Commit 3e80cda5 authored by Yoel's avatar Yoel
Browse files

Refactor because of Hit-class refactoring earlier

parent b3f26a44
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ std::optional<cam::Hit> Group::intersect(const cam::Ray& r) const { ...@@ -34,7 +34,7 @@ std::optional<cam::Hit> Group::intersect(const cam::Ray& r) const {
if (result) { if (result) {
result = std::optional<cam::Hit>( result = std::optional<cam::Hit>(
{transform.toWorld.transformPoint(result->hitpoint()), {transform.toWorld.transformPoint(result->point()),
transform.toWorldN.transformDir(result->normal()), transform.toWorldN.transformDir(result->normal()),
result->scalar(), result->material}); result->scalar(), result->material});
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment