Intended for use with Pex.
promise = glslify(file, [options])
options accept the same arguments as
the glslify package.
For example, the following should work out of the box with Node:
var glslify =var promise =promise
glslify-promise/transform to your
file, you should be able to do the same in browserify too:
Note that like glslify and brfs file paths need to be statically determinable, meaning that you can't use variables in your require statements. The following script would produce an error when running with browserify:
var glslify =var filename = __dirname + '/shader.glsl'var promise =
Whereas the following is still valid:
var glslify =var promise =
Also note that this package is using the native
For cross-browser compatibility you'll want to include the
See stackgl/contributing for details.
MIT. See LICENSE.md for details.