Options
All
  • Public
  • Public/Protected
  • All
Menu

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

license

MIT

Hierarchy

Index

Constructors

Properties

padding: number = 3
override
autoFit: boolean = false
override
animate: boolean = true

If the filter is animated or not.

#thickness: number = 3
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 = ...

The vertex shader which renders this filter.

fragmentShader: string = undefined

The fragment shader which renders this filter.

Accessors

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

    Returns number

  • The thickness of the outline.

    Parameters

    • value: number

    Returns void

  • get resolution(): number
  • set resolution(value: number): void
  • Always target the resolution of the render texture or renderer

    Returns number

  • Always target the resolution of the render texture or renderer

    Parameters

    • value: number

    Returns void

  • get multisample(): MSAA_QUALITY
  • set multisample(value: MSAA_QUALITY): void
  • Always target the MSAA level of the render texture or renderer

    Returns MSAA_QUALITY

  • Always target the MSAA level of the render texture or renderer

    Parameters

    • value: MSAA_QUALITY

    Returns void

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

    Returns number

Methods

  • apply(filterManager: any, input: any, output: any, clear: any): void
  • override

    Parameters

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

    Returns void

  • createFragmentShader(): string
  • inheritdoc

    Returns string