GlslShaderHandler

GlslShaderHandler

Handler for loading glsl shader objects.

Constructor

new GlslShaderHandler(…args)

Parameters:
Name Type Attributes Description
args * <repeatable>

ConfigHandler constructor arguments.

Methods

(static) convertToShaderObject(shaderConfig) → {Object}

Construct shader object from shader string
Avoid using eval() because of potential malicious code risk
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval

Parameters:
Name Type Description
shaderConfig String

_update(ref, config) → {Promise}

Adds/updates/removes a glsl shader file object.

Parameters:
Name Type Description
ref string
config Object