Options
All
  • Public
  • Public/Protected
  • All
Menu

A filter which implements an inner or outer glow around the source texture. Inspired from https://github.com/pixijs/filters/tree/main/filters/glow

license

MIT

Hierarchy

Index

Constructors

Properties

padding: number = 6
override
innerStrength: number = 3

The inner strength of the glow.

outerStrength: number = 3

The outer strength of the glow.

defaultUniforms: { distance: number; glowColor: number[]; quality: number; time: number } = ...

The default uniforms used by the filter

Type declaration

  • distance: number
  • glowColor: number[]
  • quality: number
  • time: number
vertexShader: string = ...

The vertex shader which renders this filter.

fragmentShader: string = undefined

The fragment shader which renders this filter.

Methods

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

    Parameters

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

    Returns void

  • createFragmentShader(quality: any, distance: any): string
  • inheritdoc

    Parameters

    • quality: any
    • distance: any

    Returns string

Accessors

  • 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