From 3f6fd615a96a3cf347557f6f82b5daee767039a0 Mon Sep 17 00:00:00 2001 From: David Doan Date: Tue, 12 Dec 2023 22:29:39 -0500 Subject: isHit --- src/illuminate/shadow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/illuminate') 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! { -- cgit v1.2.3-70-g09d2