PointLight

class pyrender.light.PointLight(color=None, intensity=None, range=None, name=None)[source]

Bases: pyrender.light.Light

Point 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

color The light’s color.
intensity The light’s intensity in candela or lux.
name The user-defined name of this object.
range The cutoff distance for the light.
shadow_texture A texture used to hold shadow maps for this light.

Attributes Documentation

color

The light’s color.

Type:(3,) float
intensity

The light’s intensity in candela or lux.

Type:float
name

The user-defined name of this object.

Type:str
range

The cutoff distance for the light.

Type:float
shadow_texture

A texture used to hold shadow maps for this light.

Type:Texture