Calculates the vector of the ray of light that reaches a point.
Calculates the vector of the ray of light that reaches a point. The length of the vector is the intensity of the light. The direction of the vector is the direction from the light to the point.
the point to illuminate
the light ray
Renders the shadow map for the given objects.
Renders the shadow map for the given objects. Remove objects from the list of surfaces if you wish for them not to cast any shadows. If this function is never called before final rendering, no shadows will be generated for this light.
the root node of the hierarchy to render shadows for
Helper function to calculate attenuation.
Helper function to calculate attenuation.
the distance to attenuate for
the attenuation multiplier
The base class for lights that support shadow-mapping.