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

    Interface BloomOptions

    Configuration options for the Bloom post-processing effect.

    interface BloomOptions {
        enabled: boolean;
        intensity: number;
        knee: number;
        passes: number;
        threshold: number;
    }
    Index

    Properties

    enabled: boolean

    Enables or disables the bloom effect. Defaults to false. When disabled, the post-process pass receives a transparent black texture.

    intensity: number

    Bloom intensity multiplier blended additively onto the final scene. Defaults to 0.5.

    knee: number

    Soft-knee width around the threshold for smooth bloom onset. Defaults to 0.1.

    passes: number

    Number of full blur iterations (each adds one H + one V pass). Defaults to 3. Higher values produce a wider, softer glow at the cost of more GPU passes.

    threshold: number

    Luminance threshold above which bloom is applied. Pixels with luma below this value contribute no bloom. Defaults to 0.8.