glFilters - v0.8.1
    Preparing search index...

    Interface Filter

    A filter descriptor: a GLSL fragment shader + uniforms.

    The renderer prepends a standard header with: precision mediump float; uniform sampler2D u_texture; uniform vec2 u_resolution; uniform vec2 u_texelSize; varying vec2 v_texCoord;

    Your fragmentSource should declare any additional uniforms and provide main().

    interface Filter {
        _debugLabel?: string;
        fragmentSource: string;
        uniforms: Record<string, number | number[]>;
    }
    Index

    Properties

    _debugLabel?: string

    Debug metadata: records the factory call that created this filter.

    fragmentSource: string
    uniforms: Record<string, number | number[]>