glslify-bundle

A wrapper module for bundling glslify scripts using common functionality within the glslify module ecosystem

glslify-bundle

A wrapper module for bundling glslify scripts using common functionality within the glslify module ecosystem.

Normalizes the API to closely match what's seen when using glslify as a browserify transform, such that when dealing with the simple case it can be used more quickly in other modules.

  • cwd is the working directory of any inline shaders.
  • options is an object literal, and should support any of the parameters you can use when using the browserify transform. Notably, frag and vert are optional.
  • done(err, result) is called when ready.

The bundled fragment shader.

The bundled vertex shader.

An array of files that were used within the bundling process.

MIT. See LICENSE.md for details.