API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classBlurFilter

@codexo/exojs / rendering / stable

Box-blur Filter implemented as multiple additive sprite passes. The blur is approximated by rendering the input texture `quality * 2 + 1` times offset symmetrically along each axis by up to ±`radius` pixels and blending them additively. Higher `quality` values add more samples and produce a smoother result at the cost of additional draw calls.

2
props
2
methods
0
events
Import
import { BlurFilter } from '@codexo/exojs'

Box-blur Filter implemented as multiple additive sprite passes.

The blur is approximated by rendering the input texture `quality * 2 + 1` times offset symmetrically along each axis by up to ±`radius` pixels and blending them additively. Higher `quality` values add more samples and produce a smoother result at the cost of additional draw calls.

Constructors 1
new(options: BlurFilterOptions): BlurFilter
Methods 2
apply(backend: RenderBackend, input: RenderTexture, output: RenderTexture): void
destroy(): void
Properties 2
quality: number
radius: number
Source