Illumination model for simulating light transfer. More...
#include <illumination.h>
Base class for illumination models, very fast. Performs classical Whitted model for ray tracing illumination, recursion, shadow computation are options.
Construct a default illumination model
[virtual]Illuminate the path of light some distance along some ray. Override this function to create a different model for light transfer.
[virtual]Allows an opportunity for the illumination model to perform any pre rendering operations it needs.
[virtual]Allows an opportunity for the illumination model to perform any post rendering operations that it needs.
Adds a light to this illumination model.
Removes all lights.
Returns the flags for this object.
Returns the flags for this object.
[protected, virtual]Returns the diffuse reflectance component of the illumination in a standard Whitted model for a single light.
m The material for the object
NdL The cosine of the angle between the surface normal and the
direction to the light
[protected, virtual]Returns the specular reflectance component of the illumination in a standard Whitted model for a single light.
m The material for the object
RdL The cosine of the angle between the surface normal and the
direction to the light
[protected, virtual]Returns the amount of non-direct illumination.
[protected, virtual]
[static]Turn on shadows, on by default.
[static]Turn on Recursion, off by default, causes rtl_material::spawn() to be called.
[static]The default illumination model that will be used to light scenes that have not had a model set for them.
[protected]
[protected]