v12.light.Light

Warning

This class is autogenerated. More detailed documentation can be found in the SDFormat spec.

class v12.light.Light(cast_shadows=False, pose='0 0 0 0 0 0', diffuse='1 1 1 1', specular='.1 .1 .1 1', attenuation=None, direction='0 0 -1', spot=None, name='__default__', type=None)

The light element describes a light source.

Parameters
cast_shadows: When true, the light will cast shadows.
pose: A position and orientation in the global coordinate frame for

the light.

diffuse: Diffuse light color
specular: Specular light color
attenuation: Light attenuation
direction: Direction of the light, only applicable for spot and

directional lights.

spot: Spot light parameters
name: A unique name for the light.
type: The light type: point, directional, spot.

Nested Elements

Note that only complex elements are listed here. Elements that resolve to simple types (int, str, bool) are inlined.

v12.light.Light.Attenuation([range, linear, ...])

Light attenuation.

v12.light.Light.Spot([inner_angle, ...])

Spot light parameters.