diff options
| author | David Doan <daviddoan@Davids-MacBook-Pro-100.local> | 2023-12-12 22:29:39 -0500 |
|---|---|---|
| committer | David Doan <daviddoan@Davids-MacBook-Pro-100.local> | 2023-12-12 22:29:39 -0500 |
| commit | 3f6fd615a96a3cf347557f6f82b5daee767039a0 (patch) | |
| tree | f8b23b4ca16669c4cd4b3c7348e07e674cc34f6e /src/illuminate | |
| parent | 018c2504879f3a585a3f6f0921c9aba22f6a9b76 (diff) | |
isHit
Diffstat (limited to 'src/illuminate')
| -rw-r--r-- | src/illuminate/shadow.cpp | 3 |
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! { |
