MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / ShaderGraph

Function ShaderGraph

MathBox/mathbox-bundle.js:77877–77891  ·  view source on GitHub ↗
(snippets, config)

Source from the content-addressed store, hash-verified

77875
77876ShaderGraph = (function() {
77877 function ShaderGraph(snippets, config) {
77878 var defaults;
77879 if (!(this instanceof ShaderGraph)) {
77880 return new ShaderGraph(snippets, config);
77881 }
77882 defaults = {
77883 globalUniforms: false,
77884 globalVaryings: true,
77885 globalAttributes: true,
77886 globals: [],
77887 autoInspect: false
77888 };
77889 this.config = merge(defaults, config);
77890 this.fetch = cache(library(GLSL, snippets, Snippet.load));
77891 }
77892
77893 ShaderGraph.prototype.shader = function(config) {
77894 var _config;

Callers

nothing calls this directly

Calls 1

mergeFunction · 0.85

Tested by

no test coverage detected