Phaser API Documentation

  Version: 
preRenderWebGL(renderer, child, camera)

Description:

Renders the Geometry Mask's underlying Graphics object to the OpenGL stencil buffer and enables the stencil test, which clips rendered pixels according to the mask.

Parameters:

name type description
renderer Phaser.Renderer.WebGL.WebGLRenderer

The WebGL Renderer instance to draw to.

child Phaser.GameObjects.GameObject

The Game Object being rendered.

camera Phaser.Cameras.Scene2D.Camera

The camera the Game Object is being rendered through.

Examples:
Since: 3.0.0