interface ShaderEffectUniform {
    method:
        | "uniform1f"
        | "uniform1i"
        | "uniform2f"
        | "uniform2i"
        | "uniform3f"
        | "uniform3i"
        | "uniform4f"
        | "uniform4i"
        | "uniform1fv"
        | "uniform1iv"
        | "uniform2fv"
        | "uniform2iv"
        | "uniform3fv"
        | "uniform3iv"
        | "uniform4fv"
        | "uniform4iv"
        | "uniformMatrix2fv"
        | "uniformMatrix3fv"
        | "uniformMatrix4fv";
    name?: string;
    size?: ((value: Record<string, unknown>) => number);
    type: string;
    updateOnBind?: boolean;
    updateProgramValue?: ((programValues: ShaderEffectValueMap, shaderProps?: Record<string, unknown>) => void);
    validator?: ((value: any, props: Record<string, unknown>) => number | number[] | number[][]);
    value:
        | string
        | number
        | boolean
        | number[];
}

Properties

method:
    | "uniform1f"
    | "uniform1i"
    | "uniform2f"
    | "uniform2i"
    | "uniform3f"
    | "uniform3i"
    | "uniform4f"
    | "uniform4i"
    | "uniform1fv"
    | "uniform1iv"
    | "uniform2fv"
    | "uniform2iv"
    | "uniform3fv"
    | "uniform3iv"
    | "uniform4fv"
    | "uniform4iv"
    | "uniformMatrix2fv"
    | "uniformMatrix3fv"
    | "uniformMatrix4fv"
name?: string
size?: ((value: Record<string, unknown>) => number)
type: string
updateOnBind?: boolean
updateProgramValue?: ((programValues: ShaderEffectValueMap, shaderProps?: Record<string, unknown>) => void)
validator?: ((value: any, props: Record<string, unknown>) => number | number[] | number[][])
value:
    | string
    | number
    | boolean
    | number[]