Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Loader.FileTypes.GLSLFile
getShaderName(headerSource)
Description:
Returns the name of the shader from the header block.
Parameters:
name
type
description
headerSource
Array.<string>
The header data.
Returns:
Description:
The shader name.
Type:
string
Since:
3.17.0
Source:
src/loader/filetypes/GLSLFile.js
(Line
155
)
Possible examples