From 3f6fd615a96a3cf347557f6f82b5daee767039a0 Mon Sep 17 00:00:00 2001 From: David Doan Date: Tue, 12 Dec 2023 22:29:39 -0500 Subject: isHit --- src/raytracer/raytracer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/raytracer') diff --git a/src/raytracer/raytracer.h b/src/raytracer/raytracer.h index 0943e0d..9b5bfbe 100644 --- a/src/raytracer/raytracer.h +++ b/src/raytracer/raytracer.h @@ -75,7 +75,8 @@ public: glm::vec4 findIntersection( glm::vec4 p, glm::vec4 d, - const RenderShapeData& shape); + const RenderShapeData& shape, + bool& isHit); // utils static RGBA toRGBA(const glm::vec4 &illumination); @@ -148,7 +149,7 @@ public: bool m_enableReflection = true; bool m_enableRefraction = false; bool m_enableTextureMap = false; - bool m_enableAcceleration = true; + bool m_enableAcceleration = false; bool m_enableParallelism = true; int m_maxRecursiveDepth = 4; bool m_enableAntiAliasing = false; -- cgit v1.2.3-70-g09d2