an example of glslify-live
MIT License
(click for a screencast example)
This is an example project for using glslify-live.
https://github.com/mattdesl/glslify-live-demo.git
cd glslify-live-demo
npm install
the dependenciesnpm start
to run the dev serverOpen localhost:9966
in your browser and start making changes to the files in the shaders/ folder.
If you are on windows, you may need to manually run the two processes as separate processes:
#dev server
npm run dev
#glslify-live server
npm run live
To do this on your own Browserify projects, you need to install some local tools:
npm install glslify glslify-live --save-dev
And add some scripts to your package.json:
"scripts": {
"bundle": "browserify index.js -t glslify-live -t glslify > bundle.js",
"live": "glslify-live"
}
Could be used with wzrd, beefy, gulp, grunt, etc.
This is in early stages and fairly experimental. You might sometimes need to re-run the process (syntax errors can crash the server). And glslify does not yet provide the best debugging experience.
MIT, see LICENSE.md for details.