Definition of a light ray. More...
#include <ray.h>
Inherits jRay.
Inherited by rtl_shadowfeeler.
This class is used for point sampling light transfers in a scene. Also contianed are static functions for providing good stochastic samplings over a distributions to approximate the integral of light transfer over an area.
Construct a ray with the given origin and direction. Also the medium that the ray is travelling in is set. Also the depth in the recursive tree can be set.
Copy a ray moving its origin t units along the line of the ray.
Trace this ray, this will cause the ray to intersect the objects in a scene. If an intersection occured then the function returns a value greater than EPS, otherwise NOHIT is returned.
Reimplemented in rtl_shadowfeeler.
Returns the object that the ray hit.
Returns the object that the ray hit.
Moves the ray t units down the direction of the ray.
Construct a new ray originating t units int the direction of this ray.
Sets the material that the ray is travelling in.
Returns the material that the ray is travelling in.
Returns the material that the ray is travelling in.
Returns this rays depth in the recursion tree.
Returns the ray signature for the ray.
Returns the flags for this object.
Returns the flags for this object.
[static]Returns an optimal poisson disk sample for this as the ith ray for the current pixel. In 0..1
[static]Returns the ith entry from the adaptive poisson disk samples table. In 0..1
[static]Returns the distance the current poisson disk sample is from the origin. In 0..1
[static]Returns the distance the ith sample in the poisson disk table is from the origin. In 0..1
[protected]
Output the ray to a stream.
[static]The maximum recursion depth of the ray tree.
[static]
[protected]
[protected]
[protected]
[protected]
[protected]
[protected]
[static, protected]
[static, protected]
[static, protected]
[static, protected]