@pixi/3d
    Preparing search index...

    Interface LightShadowCommonOptions

    Shadow options every shadow-casting light takes, whichever way its shadow is placed

    const tuning: LightShadowCommonOptions = { bias: 0.002, normalBias: 0.05 };
    const sun = new DirectionalLight({ castShadow: true, shadow: { cascades: 3, ...tuning } });

    LightShadowOptions For the full option set.

    interface LightShadowCommonOptions {
        bias?: number;
        normalBias?: number;
    }

    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 } });
    
    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 } });