Skip to content

hughsk/glslify-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glslify-bundle deprecated

Deprecated. See stackgl/glslify-bundle instead.

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.

Usage

NPM

bundle(cwd, options, done)

  • 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.

result.frag

The bundled fragment shader.

result.vert

The bundled vertex shader.

result.files

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

License

MIT. See LICENSE.md for details.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published