Skip to content
ClassRendering & Filters@public

FlxShaderFilter

Renderer-neutral custom filter descriptor with typed runtime uniforms.

ts
export declare class FlxShaderFilter<TSchema extends FlxShaderUniformSchema = FlxShaderUniformSchema>

Constructors

ts
constructor(options: FlxShaderFilterOptions<TSchema>)

Constructs a new instance of the FlxShaderFilter class

ParameterTypeDescription
optionsFlxShaderFilterOptions<TSchema>-

Properties

PropertyModifiersTypeDescription
compatibleRenderersreadonlyreadonly ('webgl' | 'webgpu')[]Renderer backends for which source code was supplied.
kindreadonly``Discriminator used by renderer adapters.
paddingreadonlynumberExtra logical pixels rendered around the filtered object.
resolutionreadonlynumberFilter render-target resolution multiplier.
uniformsreadonlyFlxShaderUniforms<TSchema>Runtime values shared logically by all camera projections.
webGLreadonlyReadonly<FlxShaderWebGLProgram>Optional GLSL program declaration.
webGPUreadonlyReadonly<FlxShaderWebGPUProgram>Optional WGSL program declaration.

Released under the MIT License.