API Docs for: 2.0.0
Show:

FilterTexture Class

Constructor

FilterTexture

(
  • gl
  • width
  • height
  • scaleMode
)
private

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

  • width Number

    the horizontal range of the filter

  • height Number

    the vertical range of the filter

  • scaleMode Number

    Should be one of the PIXI.scaleMode consts

Methods

clear

()

Clears the filter texture

destroy

()

Destroys the shader

destroy

()

Destroys the filter texture

init

()

Initialises the shader

resize

(
  • width
  • height
)

Resizes the texture to the specified width and height

Parameters:

  • width Number

    the new width of the texture

  • height Number

    the new height of the texture

Properties

fragmentSrc - The fragment shader.

Array

fragmentSrc - The fragment shader.

Array

program - The WebGL program.

Any