pyvista.plotting.themes._LightingConfig.roughness

pyvista.plotting.themes._LightingConfig.roughness#

property _LightingConfig.roughness: float[source]#

Return or set the roughness value.

This value has to be between 0 (glossy) and 1 (rough). A glossy material has reflections and a high specular part. This parameter is only used by PBR interpolation.

Examples

Set the global roughness value used in physically based rendering to 0.25.

>>> import pyvista as pv
>>> pv.global_theme.lighting_params.roughness = 0.25
>>> pv.global_theme.lighting_params.roughness
0.25