Phaser API Documentation

  Version: 
copySprite(source, target)

Description:

Copy the source Render Target to the target Render Target.

This method does not bind a shader. It uses whatever shader is currently bound in this pipeline. It also does not clear the frame buffers after use. You should take care of both of these things if you call this method directly.

Parameters:

name type description
source Phaser.Renderer.WebGL.RenderTarget

The source Render Target.

target Phaser.Renderer.WebGL.RenderTarget

The target Render Target.