pyvista.plotting.themes.Theme.resample_environment_texture#
- property Theme.resample_environment_texture: bool | float[source]#
Set or return resampling environment texture.
Resample the environment texture when using
set_environment_texture()
. Set this to a float to set the sampling rate explicitly or set toTrue
to downsample the texture to 1/16th of its original resolution.Downsampling the texture can substantially improve performance for some environments, e.g. headless setups or if GPU support is limited.
Added in version 0.45.
Examples
Enable resampling the environment texture globally.
>>> import pyvista as pv >>> pv.global_theme.resample_environment_texture = True >>> pv.global_theme.resample_environment_texture True
Disable the resampling the environment texture.
>>> import pyvista as pv >>> pv.global_theme.resample_environment_texture = False >>> pv.global_theme.resample_environment_texture False