Phaser API Documentation

  Version: 
beginBitmapMask(mask, camera)

Description:

Binds necessary resources and renders the mask to a separated framebuffer. The framebuffer for the masked object is also bound for further use.

Parameters:

name type description
mask Phaser.Display.Masks.BitmapMask

The BitmapMask instance that called beginMask.

camera Phaser.Cameras.Scene2D.Camera

The camera rendering the current mask.

Since: 3.60.0