BlendFilter

class BlendFilter extends BackdropFilter

A blend filter is a special kind of BackdropFilter that is used to implement additional blend modes.

The blend filter takes in a IBlendShaderParts and integrates that code in its shader template to blend the source and destination colors.

The backdrop texture uniform for blend filters is "uBackdrop".

Constructor


new BlendFilter(shaderParts: IBlendShaderParts) → {}
Parameters:
Name Type Description
shaderParts IBlendShaderParts

The blending code shader part.

Summary


Properties inherited from BackdropFilter

string
backdropUniformName = undefined

The name of the uniform for the backdrop texture.

Float32Array
clearColor = undefined

If non-null, @pixi/picture will clear the filter's output framebuffer with this RGBA color.

Properties inherited from Filter

boolean
autoFit = true
PIXI.BLEND_MODES
blendMode = PIXI.BLEND_MODES.NORMAL
boolean
enabled

If enabled is true the filter is applied, if false it will not.

boolean
legacy
PIXI.MSAA_QUALITY
multisample

The samples of the filter.

number
padding
number
resolution
PIXI.State
state

The WebGL state the filter requires to render.

Properties inherited from Shader

PIXI.Program
program

Program that the shader uses.

Dict<any>
uniforms

Methods inherited from Filter

void
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES, _currentState: object)

Powered by webdoc!