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 target
RenderTarget maskData
Array.<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 target
RenderTarget maskData
Array.<any> -
pushMask(graphics, webGLData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description graphics
Graphics webGLData
Array.<any> -
pushSpriteMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description target
RenderTarget maskData
Array.<any> -
pushStencilMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description target
RenderTarget maskData
Array.<any>