Nano WebGPU API - v0.11.0
    Preparing search index...

    Interface ShadowConfig

    Aggregates configuration details used when allocating depth maps and configuring PCF samplers.

    interface ShadowConfig {
        cascadeCount?: number;
        cascadeSplitLambda?: number;
        csmMaxDistance?: number;
        shadowBias: number;
        shadowDepthRange: number;
        shadowMapSize: number;
        shadowNear?: number;
        shadowRadius: number;
        useCSM?: boolean;
        usePCF: boolean;
    }
    Index

    Properties

    cascadeCount?: number

    Number of CSM cascades.

    cascadeSplitLambda?: number

    Linear vs logarithmic blend factor.

    csmMaxDistance?: number

    Maximum CSM depth range.

    shadowBias: number

    Shadow depth bias.

    shadowDepthRange: number

    Linear depth range utilized by the orthographic shadow matrix projection.

    shadowMapSize: number

    Width/height resolution of the depth attachment texture.

    shadowNear?: number

    Near clipping plane for perspective projection (spotlights).

    shadowRadius: number

    Half-extent size of the orthographic shadow frustum.

    useCSM?: boolean

    If true, the directional light uses CSM.

    usePCF: boolean

    Toggle Percentage-Closer Filtering (PCF) during fragment shader depth evaluations.