Phaser API Documentation

  Version: 
getShaderType(headerSource)

Description:

Returns the type of the shader from the header block.

Parameters:

name type description
headerSource Array.<string>

The header data.

Returns:
Description:

The shader type. Either 'fragment' or 'vertex'.

Type:
  • string
Since: 3.17.0