Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps.
Creates a new getSource
function.
getTree(source, done)
should be a function that takes a single GLSL source
string, and calls done(err, deps)
with the dependency list retrieved from
glslify-deps.
Given a single GLSL source
string, retrieves the dependency tree (if required)
and calls done(null, bundledSource)
with the resulting bundled GLSL file.
See stackgl/contributing for details.
MIT. See LICENSE.md for details.