Control aspects of the rendered mesh’s lighting such as Ambient, Diffuse,
and Specular. These options only work if the
lighting argument to
True by default).
You can turn off all lighting for the given mesh by passing
# sphinx_gallery_thumbnail_number = 4 import pyvista as pv from pyvista import examples mesh = examples.download_st_helens().warp_by_scalar() cpos = [(575848., 5128459., 22289.), (562835.0, 5114981.5, 2294.5), (-0.5, -0.5, 0.7)]
First, lets take a look at the mesh with default lighting conditions
What about with no lighting
Demonstration of the specular property
Demonstration of all three in use
For detailed control over lighting conditions in general see the Lighting examples.
Total running time of the script: ( 0 minutes 6.559 seconds)