_LightingConfig.roughness#
- property _LightingConfig.roughness: float[source]#
Return or set the roughness value.
This is the default value of
pyvista.Property.roughness, which documents the valid range.
Examples#
Download Python source code | Download Jupyter notebook
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