Light¶
-
class
pyrender.light.
Light
(color=None, intensity=None, name=None)[source]¶ Bases:
object
Base class for all light objects.
Parameters: - color ((3,) float) – RGB value for the light’s color in linear space.
- intensity (float) – Brightness of light. The units that this is defined in depend on the type of light. Point and spot lights use luminous intensity in candela (lm/sr), while directional lights use illuminance in lux (lm/m2).
- name (str, optional) – Name of the light.
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