Phaser API Documentation

  Version: 
endMask(mask)

Description:

The masked game objects framebuffer is unbound and its texture is bound together with the mask texture and the mask shader and a draw call with a single quad is processed. Here is where the masking effect is applied.

Parameters:

name type description
mask Phaser.GameObjects.GameObject

GameObject used as a mask.