pyvista.Property.specular_power#

property Property.specular_power: float[source]#

Return or set specular power.

Default pyvista.plotting.themes._LightingConfig.specular_power.

Property has range [0, 128].

Examples

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

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

Visualize specular power at 50.0.

>>> prop.specular_power = 50.0
>>> prop.plot()
../../../_images/pyvista-Property-specular_power-1_01_00.png

Visualize specular power at 10.0.

>>> prop.specular_power = 10.0
>>> prop.plot()
../../../_images/pyvista-Property-specular_power-1_02_00.png