Filter

constructor(shader: Shader? = null, watcher: ShaderWatcher? = null)(source)

Creates a new filter instance, optionally initializing it with a shader or shader watcher.

Parameters

shader

The optional Shader instance to be used by the filter.

watcher

The optional ShaderWatcher to dynamically manage the shader during execution.