X-Git-Url: https://git.rohieb.name/MicroTrace.git/blobdiff_plain/c8f239369af4af00ca31c2a3f1901f0537f4d2de..13c3b8d1e2ecf7f1dbd02f9d4bfeb813b36fd40a:/Ray.cxx diff --git a/Ray.cxx b/Ray.cxx index a3c76cb..584db26 100644 --- a/Ray.cxx +++ b/Ray.cxx @@ -2,11 +2,13 @@ #include "Ray.hxx" +#define MAX_RECURSION_DEPTH 5 + Ray::Ray() : m_org(Vec3f()), m_dir(Vec3f()), m_hit(0), - m_level(10) + m_level(MAX_RECURSION_DEPTH) { m_t = std::numeric_limits::max(); } @@ -16,7 +18,7 @@ Ray::Ray(const Vec3f& org, : m_org(org), m_dir(dir), m_hit(0), - m_level(10) + m_level(MAX_RECURSION_DEPTH) { m_t = std::numeric_limits::max(); }