An abstract filter which provides a framework for reusable definition

BaseShaderMixin

Hierarchy (View Summary)

Constructors

  • Parameters

    • OptionalvertexSrc: string

      The source of the vertex shader.

    • OptionalfragmentSrc: string

      The source of the fragment shader.

    • Optionaluniforms: Dict<any>

      Custom uniforms to use to augment the built-in ones.

    Returns AbstractBaseFilter

Properties

defaultUniforms: object = {}

The default uniforms used by the filter

fragmentShader: string = undefined

The fragment shader which renders this filter.

vertexShader: string = undefined

The vertex shader which renders this filter.

Methods

  • A factory method for creating the filter using its defined default values.

    Parameters

    • OptionalinitialUniforms: object = {}

      Initial uniform values which override filter defaults

    Returns AbstractBaseFilter

    The constructed AbstractFilter instance.