Phaser API Documentation

preRenderWebGL(renderer, child, camera)


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.


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.

Since: 3.0.0