@pixi/3d
    Preparing search index...

    Interface LightShadowBoundsOptions

    Shadow options for one shadow map over a fixed world-space box, the default placement

    The box is fitted to the scene's shadow casters, or set with bounds. Suits a scene that fits in one box, such as a room, an arena, a board, or scenery an orbit camera circles. A spot light takes these options but ignores bounds: its shadow covers its cone.

    const sun = new DirectionalLight({
    castShadow: true,
    shadow: { bounds: Box.fromCenterSize({ x: 0, y: 0, z: 0 }, 40), update: 'manual' },
    });
    interface LightShadowBoundsOptions {
        bias?: number;
        bounds?: Box;
        normalBias?: number;
        update?: number | "manual";
    }

    Hierarchy (View Summary)

    Index
    bias?: number

    Depth offset that keeps a surface from shadowing itself; see LightShadow.bias

    0.001
    
    const sun = new DirectionalLight({ castShadow: true, shadow: { bias: 0.002 } });
    
    bounds?: Box

    World-space box a directional light's shadow covers; see LightShadow.bounds

    const sun = new DirectionalLight({ castShadow: true, shadow: { bounds: Box.fromCenterSize(arena.position, 30) } });
    
    normalBias?: number

    Offset along the surface normal that keeps a surface from shadowing itself; see LightShadow.normalBias

    const sun = new DirectionalLight({ castShadow: true, shadow: { normalBias: 0.05 } });
    
    update?: number | "manual"

    How often the shadow redraws; see LightShadow.update

    1
    
    const sun = new DirectionalLight({ castShadow: true, shadow: { update: 4 } });