glFilters - v0.6.0
    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 {
        fragmentSource: string;
        uniforms: Record<string, number | number[]>;
    }
    Index

    Properties

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