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.
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.