pygfx.objects.LightShadow
- class pygfx.objects.LightShadow(camera: PerspectiveCamera)
Bases:
object
Shadow map utility base class.
This is usually created automatically by a light, and can be accessed through the light’s shadow property.
- Parameters:
camera (Camera) – The light’s view of the scene. This is used to generate a depth map of the scene; objects occluded by other objects from the light’s perspective will receive shadow.
- property camera
The camera that defines the POV for determining the depth map of the scene.
- property bias
Shadow map bias. Very tiny adjustments here may help reduce artifacts in shadows.
- property cull_mode
Shadow map cull_mode (‘front’, ‘back’, or ‘none’). When shadow mapping open meshes, set to ‘none’ and increase
bias
value to avoid shadow acne.