Phaser API Documentation

  Version: 
WebGLPipelineShaderConfig
Properties:
name type arguments description
name string <optional>

The name of the shader. Doesn't have to be unique, but makes shader look-up easier if it is.

vertShader string <optional>

The source code, as a string, for the vertex shader. If not given, uses the Phaser.Types.Renderer.WebGL.WebGLPipelineConfig.vertShader property instead.

fragShader string <optional>

The source code, as a string, for the fragment shader. Can include %count% and %forloop% declarations for multi-texture support. If not given, uses the Phaser.Types.Renderer.WebGL.WebGLPipelineConfig.fragShader property instead.

attributes Phaser.Types.Renderer.WebGL.WebGLPipelineAttributesConfig <optional>

An array of shader attribute data. All shaders bound to this pipeline must use the same attributes.

Type:
object