A browserify transform that transparently enables live reloading of your shaders when using glslify.
glslify-live, run this from your project root to start up
the live reloading server:
If you're running it from a
package.json script, you can just do:
Once that's running, you can simply include the
glslify when you're bundling with browserify. In the commandline:
browserify -t glslify-live -t glslify
var browserify =var fs =var output = fsvar br =brbrbr
You might want to respond to these automatic updates, especially considering that they may result in changing the values of your uniform/attribute variables.
In that case, you can simply require this module in your code and list to the update event:
var live =live
If you're not applying the transform, all that you're loading up is an
EventEmitter so it shouldn't be an issue including it in your
MIT. See LICENSE.md for details.