Light¶
-
class
pyrender.light.Light(color=None, intensity=None, name=None)[source]¶ Bases:
objectBase 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
colorThe light’s color. intensityThe light’s intensity in candela or lux. nameThe user-defined name of this object. shadow_textureA texture used to hold shadow maps for this light. Attributes Documentation