Phaser API Documentation

  Version: 
bind([currentShader])

Description:

This method is called every time the Pipeline Manager makes this pipeline the currently active one.

It binds the resources and shader needed for this pipeline, including setting the vertex buffer and attribute pointers.

Parameters:

name type arguments description
currentShader Phaser.Renderer.WebGL.WebGLShader <optional>

The shader to set as being current.

Returns:
Description:

This WebGLPipeline instance.

Examples:
Since: 3.0.0