PointLight¶
-
class
pyrender.light.PointLight(color=None, intensity=None, range=None, name=None)[source]¶ Bases:
pyrender.light.LightPoint lights emit light in all directions from their position in space; rotation and scale are ignored except for their effect on the inherited node position. The brightness of the light attenuates in a physically correct manner as distance increases from the light’s position (i.e. brightness goes like the inverse square of the distance). Point light intensity is defined in candela, which is lumens per square radian (lm/sr).
Parameters: - color ((3,) float) – RGB value for the light’s color in linear space.
- intensity (float) – Brightness of light in candela (lm/sr).
- range (float) – Cutoff distance at which light’s intensity may be considered to have reached zero. If None, the range is assumed to be infinite.
- 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. rangeThe cutoff distance for the light. shadow_textureA texture used to hold shadow maps for this light. Attributes Documentation