Phaser API Documentation

  Version: 
setShadersFromConfig(config)

Description:

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.

Parameters:

name type description
config Phaser.Types.Renderer.WebGL.WebGLPipelineConfig

The configuration object for this WebGL Pipeline.

Returns:
Description:

This WebGLPipeline instance.

Examples:
Since: 3.50.0