A light shining from infinitely far away in a particular direction, like sunlight.
explicit DirectionalLight(std::string const &name)¶
Clears a custom specular color setting, meaning that the specular color will now come from the color.
LVector3 const &get_direction(void) const¶
Returns the direction in which the light is aimed. This is local to the coordinate space in which the light is assigned.
LPoint3 const &get_point(void) const¶
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.
- explicit DirectionalLight(std::string const &name)¶