diff options
Diffstat (limited to 'src/raytracer/raytracer.cpp')
-rw-r--r-- | src/raytracer/raytracer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raytracer/raytracer.cpp b/src/raytracer/raytracer.cpp index 2757af5..385e57d 100644 --- a/src/raytracer/raytracer.cpp +++ b/src/raytracer/raytracer.cpp @@ -166,7 +166,7 @@ glm::vec4 RayTracer::getPixelFromRay( continue; } - auto newIntersectionWorld = shape.ctm * newIntersectionObj; + auto newIntersectionWorld = Vec4Ops::transformPoint4(newIntersectionObj,shape.ctm,shape.translation4d); float newDist = glm::distance(newIntersectionWorld, pWorld); if ( newDist < minDist // closer intersection |