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
Helper function to calculate attenuation.
Helper function to calculate attenuation.
the distance to attenuate for
the attenuation multiplier
The base class for a light that provides illumination to shaders.