Phaser API Documentation

  Version: 
applyStencil(renderer, camera, inc)

Description:

Applies the current stencil mask to the renderer.

Parameters:

name type description
renderer Phaser.Renderer.WebGL.WebGLRenderer

The WebGL Renderer instance to draw to.

camera Phaser.Cameras.Scene2D.Camera

The camera the Game Object is being rendered through.

inc boolean

Is this an INCR stencil or a DECR stencil?

Since: 3.17.0