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 |
fragShader | string | <optional> |
The source code, as a string, for the fragment shader. Can include |
attributes | Array.<Phaser.Types.Renderer.WebGL.WebGLPipelineAttributeConfig> | <optional> |
An array of shader attribute data. All shaders bound to this pipeline must use the same attributes. |