This callback is invoked when you call the copySprite
method.
It will fire after the shader has been set, but before the source target has been copied, so use it to set any additional uniforms you may need.
Note: Manipulating the Sprite during this callback will not change the Render Targets.
name | type | description |
---|---|---|
source | Phaser.Renderer.WebGL.RenderTarget |
The source Render Target being copied from. |
target | Phaser.Renderer.WebGL.RenderTarget |
The target Render Target that will be copied to. |
gameObject | Phaser.GameObjects.Sprite |
The Sprite being copied. |