A light shining from infinitely far away in a particular direction, like sunlight.
More...
A light shining from infinitely far away in a particular direction, like sunlight.
Definition at line 27 of file directionalLight.h.
| const LPoint3f & DirectionalLight::get_point |
( |
| ) |
const [inline] |
Returns the point in space at which the light is located.
This is local to the coordinate space in which the light is assigned.
This actually has no bearing on the visual effect of the light, since the light is rendered as if it were infinitely far away. This is only used to create a visible representation of the light.
Definition at line 79 of file directionalLight.I.
| bool DirectionalLight::get_vector_to_light |
( |
LVector3f & |
result, |
|
|
const LPoint3f & |
from_object_point, |
|
|
const LMatrix4f & |
to_object_space |
|
) |
| [virtual] |
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 151 of file directionalLight.cxx.