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()
Visualize specular at
0.5
.>>> prop.specular = 0.5 >>> prop.plot()
Visualize specular at
1.0
.>>> prop.specular = 1.0 >>> prop.plot()