pyvista.Property.specular#

property Property.specular: float[source]#

Return or set specular.

Default pyvista.plotting.themes._LightingConfig.specular.

Specular lighting simulates the bright spot of a light that appears on shiny objects.

Property has range [0.0, 1.0].

Examples

Get the default specular value and visualize it with Phong shading.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.specular
0.0
>>> prop.interpolation = 'phong'
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_00_00.png

Visualize specular at 0.5.

>>> prop.specular = 0.5
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_01_00.png

Visualize specular at 1.0.

>>> prop.specular = 1.0
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_02_00.png