#include <BIHTracer.h>
Public Member Functions | |
BIHTracer (Scene *s) | |
virtual | ~BIHTracer () |
virtual RGBColor | trace (Ray &r) const |
Definition at line 9 of file BIHTracer.h.
rcrt::BIHTracer::BIHTracer | ( | Scene * | s | ) |
Definition at line 7 of file BIHTracer.cpp.
rcrt::BIHTracer::~BIHTracer | ( | ) | [virtual] |
Definition at line 11 of file BIHTracer.cpp.
Trace the given ray and return the (approximated) radiance that is coming in at the ray origin, from -ray_direction.
r | the ray |
Implements rcrt::TracingStrategy.
Definition at line 15 of file BIHTracer.cpp.
References rcrt::Ray::bihnodes, rcrt::RGBColor::BLACK, rcrt::Scene::intersect(), rcrt::Intersection::isValid(), and rcrt::TracingStrategy::scene.