aboutsummaryrefslogtreecommitdiff
path: root/src/illuminate/shadow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/illuminate/shadow.cpp')
-rw-r--r--src/illuminate/shadow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/illuminate/shadow.cpp b/src/illuminate/shadow.cpp
index efb52a7..6057637 100644
--- a/src/illuminate/shadow.cpp
+++ b/src/illuminate/shadow.cpp
@@ -26,7 +26,8 @@ bool RayTracer::isShadowed(
glm::vec4 pObject = s.inverseCTM * intersectionWorld;
// see if there is an intersection
- glm::vec4 newIntersectionObj = findIntersection(pObject, dObject, s);
+ bool isHit = false;
+ glm::vec4 newIntersectionObj = findIntersection(pObject, dObject, s, isHit);
if (newIntersectionObj.w == 1.f) // hit!
{