| 77875 | |
| 77876 | ShaderGraph = (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; |