API reference

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

C

classFilter

@codexo/exojs / rendering / stable

Abstract base class for post-process filters applied to a drawable's render output. Filters are rendered into a temporary RenderTexture (the `output`) that is composited back onto the scene after all filters in the chain have been applied. Subclasses implement apply to run their shader pass. Stock implementations: BlurFilter, ColorFilter. User-supplied GLSL/WGSL shaders: WebGl2ShaderFilter, WebGpuShaderFilter.

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

Abstract base class for post-process filters applied to a drawable's render output.

Filters are rendered into a temporary RenderTexture (the `output`) that is composited back onto the scene after all filters in the chain have been applied. Subclasses implement apply to run their shader pass. Stock implementations: BlurFilter, ColorFilter. User-supplied GLSL/WGSL shaders: WebGl2ShaderFilter, WebGpuShaderFilter.

Constructors 1
new(): Filter
Methods 2
apply(backend: RenderBackend, input: RenderTexture, output: RenderTexture): void
destroy(): void
Source