aboutsummaryrefslogtreecommitdiff
path: root/src/illuminate/shadow.cpp
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-12 22:29:39 -0500
committerDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-12 22:29:39 -0500
commit3f6fd615a96a3cf347557f6f82b5daee767039a0 (patch)
treef8b23b4ca16669c4cd4b3c7348e07e674cc34f6e /src/illuminate/shadow.cpp
parent018c2504879f3a585a3f6f0921c9aba22f6a9b76 (diff)
isHit
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!
{