Phaser API Documentation

  Version: 
bind([setAttributes], [flush])

Description:

Sets the program this shader uses as being the active shader in the WebGL Renderer.

This method is called every time the parent pipeline is made the current active pipeline.

Parameters:

name type arguments Default description
setAttributes boolean <optional> false

Should the vertex attribute pointers be set?

flush boolean <optional> false

Flush the pipeline before binding this shader?

Returns:
Description:

This WebGLShader instance.

Since: 3.50.0