Phaser API Documentation

  Version: 
drawToGame(source)

Description:

This method will copy the given Render Target to the game canvas using the copyShader.

This applies the results of the copy shader during the draw.

If you wish to copy the target without any effects see the copyToGame method instead.

This method should be the final thing called in your pipeline.

Parameters:

name type description
source Phaser.Renderer.WebGL.RenderTarget

The Render Target to draw to the game.

Since: 3.60.0