glslify-sync
A synchronous wrapper for glslify, providing a consistent interface between both Node.js and browserify.
In node.js it works by synchronousily executing glsl in the command line via execSync
.
Usage
glsl = glslify(file)
For example
var glslify = var source = console // your glslified GLSL source!
To use it in browserify either add it as a transform parameter
browserify main.js -t glslify-sync/transform
or add to your package.json
{
"browserify": {
"transform": [
"glslify-sync/transform"
]
}
}
License
MIT, see LICENSE.md for details.