@pixi/3d
    Preparing search index...

    Type Alias LightShadowOptions

    Shadow options a light takes, in one of two placements

    A fixed box (LightShadowBoundsOptions) is the default: one shadow map over the scene's shadow casters, or over the bounds you give. Cascades (LightShadowCascadesOptions) follow the camera instead. Passing bounds and cascades together is a type error. Fields left out take their defaults. Only read while castShadow is true.

    const shadow: LightShadowOptions = openWorld ? { cascades: 3, maxDistance: 80 } : { bounds: arenaBounds };
    const sun = new DirectionalLight({ castShadow: true, shadow });

    Light.shadow For the resolved shadow state on a constructed light.