PIXI.SpriteMaskFilter
class SpriteMaskFilter extends PIXI.Filter
This handles a Sprite acting as a mask, as opposed to a Graphic.
WebGL only.
Constructor
new PIXI.SpriteMaskFilter(sprite: PIXI.Sprite) → {}
| Name | Type | Description |
|---|---|---|
| sprite | PIXI.Sprite |
The target sprite. |
new PIXI.SpriteMaskFilter(vertexSrc: string, fragmentSrc: string, uniforms: Dict) → {}
| Name | Type | Attributes | Description |
|---|---|---|---|
| vertexSrc | string |
<optional> |
The source of the vertex shader. |
| fragmentSrc | string |
<optional> |
The source of the fragment shader. |
| uniforms | Dict<any> |
<optional> |
Custom uniforms to use to augment the built-in ones. |
Summary
Properties from SpriteMaskFilter
| PIXI.Matrix |
Mask matrix |
| PIXI.DisplayObject |
|
Methods from SpriteMaskFilter
| void |
|
Properties inherited from Filter
| boolean |
|
| PIXI.BLEND_MODES |
|
| boolean |
If enabled is true the filter is applied, if false it will not. |
| boolean |
|
| PIXI.MSAA_QUALITY |
The samples of the filter. |
| number |
|
| number |
|
| PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
| PIXI.Program |
Program that the shader uses. |
| Dict<any> |
|
Public Properties
Public Methods
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES) → {void}
Applies the filter
| Name | Type | Description |
|---|---|---|
| filterManager | PIXI.FilterSystem |
The renderer to retrieve the filter from |
| input | PIXI.RenderTexture |
The input render target. |
| output | PIXI.RenderTexture |
The target to output to. |
| clearMode | PIXI.CLEAR_MODES |
Should the output be cleared before rendering to it. |
| Type | Description |
|---|---|
| void |