new MaskManager(renderer)
Parameters:
| Name | Type | Description |
|---|---|---|
renderer |
WebGLRenderer | The renderer this manager works for. |
Methods
-
popMask(target, maskData)
-
Removes the last mask from the mask stack and doesn't return it.
Parameters:
Name Type Description targetRenderTarget maskDataArray.<any> -
popSpriteMask()
-
Removes the last filter from the filter stack and doesn't return it.
-
popStencilMask(target, maskData)
-
Removes the last filter from the filter stack and doesn't return it.
Parameters:
Name Type Description targetRenderTarget maskDataArray.<any> -
pushMask(graphics, webGLData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description graphicsGraphics webGLDataArray.<any> -
pushSpriteMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description targetRenderTarget maskDataArray.<any> -
pushStencilMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description targetRenderTarget maskDataArray.<any>