This method will copy the given Render Target to the game canvas using the gameShader
.
Unless you've changed it, the gameShader
copies the target without modifying it, just
ensuring it is placed in the correct location on the canvas.
If you wish to draw the target with and apply the fragment shader at the same time,
see the drawToGame
method instead.
This method should be the final thing called in your pipeline.
name | type | description |
---|---|---|
source | Phaser.Renderer.WebGL.RenderTarget |
The Render Target to copy to the game. |