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

Function ShaderGraph

MathBox/mathbox-core.js:31192–31206  ·  view source on GitHub ↗
(snippets, config)

Source from the content-addressed store, hash-verified

31190
31191ShaderGraph = (function() {
31192 function ShaderGraph(snippets, config) {
31193 var defaults;
31194 if (!(this instanceof ShaderGraph)) {
31195 return new ShaderGraph(snippets, config);
31196 }
31197 defaults = {
31198 globalUniforms: false,
31199 globalVaryings: true,
31200 globalAttributes: true,
31201 globals: [],
31202 autoInspect: false
31203 };
31204 this.config = merge(defaults, config);
31205 this.fetch = cache(library(GLSL, snippets, Snippet.load));
31206 }
31207
31208 ShaderGraph.prototype.shader = function(config) {
31209 var _config;

Callers

nothing calls this directly

Calls 1

mergeFunction · 0.85

Tested by

no test coverage detected