Phaser API Documentation

  Version: 
bindAndDraw(source)

Description:

This method is called by drawToGame and copyToGame. It takes the source Render Target and copies it back to the game canvas, or the next frame buffer in the stack, and should be considered the very last thing this pipeline does.

You don't normally need to call this method, or override it, however it is left public should you wish to do so.

Note that it does not set a shader. You should do this yourself if invoking this.

Parameters:

name type description
source Phaser.Renderer.WebGL.RenderTarget

The Render Target to draw to the game.

Since: 3.60.0