Ray::Ray()
: m_org(Vec3f()),
m_dir(Vec3f()),
- m_hit(0)
+ m_hit(0),
+ m_level(10)
{
m_t = std::numeric_limits<float>::max();
}
const Vec3f& dir)
: m_org(org),
m_dir(dir),
- m_hit(0)
+ m_hit(0),
+ m_level(10)
{
m_t = std::numeric_limits<float>::max();
}
m_dir = r.m_dir;
m_t = r.m_t;
m_hit = r.m_hit;
+ m_level = r.m_level;
}
Ray&