A rtl_ray subclass to trace for shadows. More...
#include <shadowfeeler.h>
Inherits rtl_ray.
This class modifies the ray tracing algorithm slightly to compute shadows.
Construct a shadow-feeler. This object will trace a ray from the given world space point which originated on the given object towards the given light.
Returns the distance this shadow feeler will travel before reaching the light.
Returns the object which was struck to spawn this shadow-feeler.
Returns the light for whose light this ray is feeling.
Returns the fractional amount of light that follows the path of the shadow feeler. This is in case the shadow feeler hit transparent objects during the trace. It continues (without refraction) and maintains a value in 0..1 of how much of the lights power travelled to objecthit(). If there was no intersection before maxtime than returns 1, if a opaque object is struck than a value of 0 is returned otherwise a value between 0 and 1 is returned.
[static]When a shadow feeler has been trace'd it is not the same ray as is passed to the rtl_object::lclintersect() or rtl_groupmem::intersect() functions, because the shadow feeler ray will be transformed into object space. This transformed ray is not a shadow feeler in type. This static variable points to the actual shadow feeler that has been transformed for actual intersection calculations.