A filter which implements an outline. Inspired from https://github.com/pixijs/filters/tree/main/filters/outline

License

MIT

Hierarchy (view full)

Properties

padding: number = 3
autoFit: boolean = false
animated: boolean = true

If the filter is animated or not.

defaultUniforms: {
    outlineColor: number[];
    thickness: number[];
    alphaThreshold: number;
    knockout: boolean;
    wave: boolean;
} = ...

The default uniforms used by the filter

Type declaration

  • outlineColor: number[]
  • thickness: number[]
  • alphaThreshold: number
  • knockout: boolean
  • wave: boolean
vertexShader: string = ...
fragmentShader: string = undefined

The fragment shader which renders this filter.

Accessors

  • get thickness(): number
  • The thickness of the outline.

    Returns number

  • get #quality(): number
  • Quality of the outline according to performance mode.

    Returns number

Methods

  • Parameters

    • filterManager: any
    • input: any
    • output: any
    • clear: any

    Returns void

  • Dynamically create the fragment shader used for filters of this type.

    Returns string