Phaser API Documentation

  Version: 
bindRenderTarget([target], [unit])

Description:

Activates the given Render Target texture and binds it to the requested WebGL texture slot.

Parameters:

name type arguments description
target Phaser.Renderer.WebGL.RenderTarget <optional>

The Render Target to activate and bind.

unit number <optional>

The WebGL texture ID to activate. Defaults to gl.TEXTURE0.

Returns:
Description:

This WebGL Pipeline instance.

Since: 3.50.0