DirectionalLight¶
-
class
pyrender.light.
DirectionalLight
(color=None, intensity=None, name=None)[source]¶ Bases:
pyrender.light.Light
Directional lights are light sources that act as though they are infinitely far away and emit light in the direction of the local -z axis. This light type inherits the orientation of the node that it belongs to; position and scale are ignored except for their effect on the inherited node orientation. Because it is at an infinite distance, the light is not attenuated. Its intensity is defined in lumens per metre squared, or lux (lm/m2).
Parameters: Attributes Summary
color
The light’s color. intensity
The light’s intensity in candela or lux. name
The user-defined name of this object. shadow_texture
A texture used to hold shadow maps for this light. Attributes Documentation