- property Light.shadow_attenuation¶
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_valuesof the light can make it pass through objects even if its shadow attenuation is 1.
Set the shadow attenuation to 0.5
>>> import pyvista as pv >>> light = pv.Light() >>> light.shadow_attenuation = 0.5 >>> light.shadow_attenuation 0.5