API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classFilter
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, ColorMatrixFilter, LutFilter. User-supplied GLSL/WGSL shaders: ShaderFilter.
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, ColorMatrixFilter, LutFilter. User-supplied GLSL/WGSL shaders: ShaderFilter.
new(): Filterapply(backend: RenderBackend, input: RenderTextureAn off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (sca…, output: RenderTextureAn off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (sca…, resolution?: number): voiddestroy(): voidgetOutputBounds(input: ReadonlyRectangleRead-only view of a Rectangle: every accessor and non-mutating query a rectangle offers, with none of its writers. Returned by APIs that hand out a LIVE intern…, output: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…): voidinvalidate(): voidresolution: TargetResolution