Phaser API Documentation

  Version: 
GLSLFileConfig
Properties:
name type arguments Default description
key string

The key of the file. Must be unique within both the Loader and the Text Cache.

url string <optional>

The absolute or relative URL to load the file from.

shaderType string <optional> 'fragment'

The type of shader. Either fragment for a fragment shader, or vertex for a vertex shader. This is ignored if you load a shader bundle.

extension string <optional> 'glsl'

The default file extension to use if no url is provided.

xhrSettings Phaser.Types.Loader.XHRSettingsObject <optional>

Extra XHR Settings specifically for this file.

Type:
object