Phaser API Documentation

applyStencil(renderer, camera, inc)


Applies the current stencil mask to the renderer.


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