A light originating from a single point in space, and shining in a particular direction, with a cone-shaped falloff.
More...
A light originating from a single point in space, and shining in a particular direction, with a cone-shaped falloff.
The Spotlight frustum is defined using a Lens, so it can have any of the properties that a camera lens can have.
Note that the class is named Spotlight instead of SpotLight, because "spotlight" is a single English word, instead of two words.
Definition at line 37 of file spotlight.h.
Computes the vector from a particular vertex to this light.
The exact vector depends on the type of light (e.g. point lights return a different result than directional lights).
The input parameters are the vertex position in question, expressed in object space, and the matrix which converts from light space to object space. The result is expressed in object space.
The return value is true if the result is successful, or false if it cannot be computed (e.g. for an ambient light).
Reimplemented from Light.
Definition at line 158 of file spotlight.cxx.
Sets the exponent that controls the amount of light falloff from the center of the spotlight.
The light is attenuated by the cosine of the angle between the direction of the light and the direction of the point being lighted, raised to the power of this exponent. Thus, higher exponents result in a more focused light source, regardless of the field-of-view of the lens.
Definition at line 67 of file spotlight.I.