pyvista.plotting.themes._LightingConfig#

class _LightingConfig[source]#

PyVista lighting configuration.

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

Examples

Set global PBR parameters.

>>> import pyvista as pv
>>> pv.global_theme.lighting_params.interpolation = 'pbr'
>>> pv.global_theme.lighting_params.metallic = 0.5
>>> pv.global_theme.lighting_params.roughness = 0.25

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.