Property.metallic#
- property Property.metallic: float[source]#
Return or set metallic.
Default
pyvista.plotting.themes._LightingConfig.metallic.This requires that the
interpolationbe set to'Physically based rendering'.Property has range
[0.0, 1.0].
Examples#
Download Python source code | Download Jupyter notebook
Get the default metallic value and visualize it.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.interpolation = 'pbr' # required
>>> prop.metallic
0.0
>>> prop.plot()
Visualize metallic at 0.5.
>>> prop.metallic = 0.5
>>> prop.plot()
Visualize metallic at 1.0.
>>> prop.metallic = 1.0
>>> prop.plot()