_LightingConfig#

class _LightingConfig[source]#

PyVista lighting configuration.

This will control the lighting interpolation type, parameters, and Physically Based Rendering (PBR) options

Examples#

Download Python source code | Download Jupyter notebook

Set global PBR parameters.

Inheritance#

Inherited members are documented on _ConfigBase.

See them all under Inherited Methods.

Attributes#

_LightingConfig.ambient

Return or set the ambient value.

_LightingConfig.diffuse

Return or set the diffuse value.

_LightingConfig.emissive

Return or set if emissive is used with point Gaussian style.

_LightingConfig.interpolation

Return or set the default interpolation type.

_LightingConfig.metallic

Return or set the metallic value.

_LightingConfig.roughness

Return or set the roughness value.

_LightingConfig.specular

Return or set the specular value.

_LightingConfig.specular_power

Return or set the specular power value.

Inherited Methods#

_ConfigBase.from_dict

Create an instance from a dictionary of attribute values.

_ConfigBase.to_dict

Return config parameters as a dictionary.