Bundle a glslify-deps dependency tree into a GLSL source string
Bundle a glslify-deps dependency tree into a GLSL source string.
This has been separated from glslify-deps such that you can prebundle a dependency tree server-side, but then still modify shader file contents in a browser.
Takes the output object from glslify-deps and returns a bundled GLSL string.
var bundle = require'glslify-bundle'var deps = require'glslify-deps'var path = require'path'var file = pathjoin__dirname 'index.glsl'depsaddfileif err throw errvar glsl = bundletreeconsole.logglsl
See stackgl/contributing for details.
MIT. See LICENSE.md for details.