Destroys all shaders currently set in the WebGLPipeline.shaders
array and then parses the given
config
object, extracting the shaders from it, creating WebGLShader
instances and finally
setting them into the shaders
array of this pipeline.
This is a destructive process. Be very careful when you call it, should you need to.
name | type | description |
---|---|---|
config | Phaser.Types.Renderer.WebGL.WebGLPipelineConfig |
The configuration object for this WebGL Pipeline. |
This WebGLPipeline instance.