| Name | Type | Description |
|---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Members
-
Active state
-
List of filters for the FilterSystem
-
Whether to clear output renderTexture in AUTO/BLIT mode. See PIXI.CLEAR_MODES
-
globalUniforms PIXI.UniformGroup
-
This uniform group is attached to filter uniforms when used
Properties:
Name Type Description outputFramePIXI.Rectangle inputSizeFloat32Array inputPixelFloat32Array inputClampFloat32Array resolutionNumber filterAreaFloat32Array filterClampFload32Array -
quad PIXI.Quad
-
A very simple geometry used when drawing a filter effect to the screen
-
quadUv PIXI.QuadUv
-
Quad UVs
-
renderer PIXI.Renderer inherited
-
The renderer this manager works for.
-
a pool for storing filter states, save us creating new ones each tick
-
tempRect PIXI.Rectangle
-
Temporary rect for maths
-
stores a bunch of PO2 textures used for filtering
-
Old padding behavior is to use the max amount instead of sum padding. Use this flag if you need the old behavior.
- Default Value:
- false
Methods
-
Draws a filter.
Name Type Description filterPIXI.Filter The filter to draw.
inputPIXI.RenderTexture The input render target.
outputPIXI.RenderTexture The target to output to.
clearModePIXI.CLEAR_MODES optional Should the output be cleared before rendering to it
-
Binds a renderTexture with corresponding
filterFrame, clears it if mode corresponds.Name Type Description filterTexturePIXI.RenderTexture renderTexture to bind, should belong to filter pool or filter stack
clearModePIXI.CLEAR_MODES optional clearMode, by default its CLEAR/YES. See PIXI.CLEAR_MODES
-
calculateNormalizedScreenSpaceMatrix (outputMatrix)PIXI.Matrix Deprecated : since 5.0.0
-
Name Type Description outputMatrixPIXI.Matrix The matrix to output to.
Returns:
Type Description PIXI.Matrix The mapped matrix. -
calculateScreenSpaceMatrix (outputMatrix)PIXI.Matrix Deprecated : since 5.0.0
-
Name Type Description outputMatrixPIXI.Matrix the matrix to output to.
Returns:
Type Description PIXI.Matrix The mapped matrix. -
calculateSpriteMatrix (outputMatrix, sprite)PIXI.Matrix
-
Multiply input normalized coordinates to this matrix to get sprite texture normalized coordinates.
Use
outputMatrix * vTextureCoordin the shader.Name Type Description outputMatrixPIXI.Matrix The matrix to output to.
spritePIXI.Sprite The sprite to map to.
Returns:
Type Description PIXI.Matrix The mapped matrix. -
destroy () overrides
-
Destroys this Filter System.
-
Empties the texture pool.
-
getFilterTexture (input, resolution)PIXI.RenderTexture
-
Gets extra render texture to use inside current filter To be compliant with older filters, you can use params in any order
Name Type Description inputPIXI.RenderTexture optional renderTexture from which size and resolution will be copied
resolutionnumber optional override resolution of the renderTexture
Returns:
Type Description PIXI.RenderTexture -
getOptimalFilterTexture (minWidth, minHeight, resolution)PIXI.RenderTexture protected
-
Gets a Power-of-Two render texture or fullScreen texture
Name Type Default Description minWidthnumber The minimum width of the render texture in real pixels.
minHeightnumber The minimum height of the render texture in real pixels.
resolutionnumber 1 optional The resolution of the render texture.
Returns:
Type Description PIXI.RenderTexture The new render texture. -
Pops off the filter and applies it.
-
Adds a new filter to the System.
Name Type Description targetPIXI.DisplayObject The target of the filter to render.
filtersArray.<PIXI.Filter> The filters to apply.
-
calls
texturePool.resize(), affects fullScreen renderTextures -
Frees a render texture back into the pool.
Name Type Description renderTexturePIXI.RenderTexture The renderTarget to free