Constructor for the GaussianBlur helper.
The engine instance to use for creating the Gaussian blur effect
Creates a complete Gaussian blur expression with multiple blur passes and synthesis. This method generates a series of render passes that apply Gaussian blur at different resolution levels and synthesizes them into a final blurred image.
Configuration object containing the texture to blur and parameters
Blur configuration parameters
OptionalblurPassLevel?: numberNumber of blur passes (default: 4)
OptionalgaussianKernelSize?: numberSize of the Gaussian kernel (default: 10)
OptionalgaussianVariance?: numberVariance for Gaussian distribution (default: 10)
OptionalisReduceBuffer?: booleanWhether to reduce buffer size for each pass (default: true)
OptionaloutputFrameBuffer?: FrameBufferOptional output framebuffer (default: undefined)
OptionaloutputFrameBufferLayerIndex?: numberLayer index for output framebuffer (default: 0)
OptionalsynthesizeCoefficient?: [number, number, number, number, number, number]Coefficients for blending blur levels (default: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
OptionaltextureFormat?: TextureFormatEnumFormat for intermediate textures (default: RGBA16F)
The source texture to apply Gaussian blur to
An object containing the blur expression, blurred render target, and render passes
Destroys all 3D API resources associated with this GaussianBlur instance. This method cleans up all cached framebuffers and their associated GPU resources to prevent memory leaks. Should be called when the GaussianBlur instance is no longer needed.
A helper class for creating Gaussian blur effects on textures. This class provides functionality to apply multi-pass Gaussian blur with customizable parameters including blur levels, kernel size, and variance.