pyvista.Light.shadow_attenuation

pyvista.Light.shadow_attenuation#

property Light.shadow_attenuation[source]#

Return or set the value of shadow attenuation.

By default a light will be completely blocked when in shadow. By setting this value to less than 1.0 you can control how much light is attenuated when in shadow. Note that changing the attenuation_values of the light can make it pass through objects even if its shadow attenuation is 1.

Examples

Set the shadow attenuation to 0.5

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.shadow_attenuation = 0.5
>>> light.shadow_attenuation
0.5