Phaser API Documentation

  Version: 
setShader(shader, [setAttributes])

Description:

Sets the currently active shader within this pipeline.

Parameters:

name type arguments Default description
shader Phaser.Renderer.WebGL.WebGLShader

The shader to set as being current.

setAttributes boolean <optional> false

Should the vertex attribute pointers be set?

Returns:
Description:

This WebGLPipeline instance.

Since: 3.50.0