An abstract filter which provides a framework for reusable definition

Mixes

BaseShaderMixin

Abstract

Hierarchy (view full)

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

    • Optional initialUniforms: object = {}

      Initial uniform values which override filter defaults

    Returns AbstractBaseFilter

    The constructed AbstractFilter instance.