spite / Wagner

Effects composer for three.js
Other
1.07k stars 128 forks source link

Add build step #20

Closed milcktoast closed 8 years ago

milcktoast commented 9 years ago

First pass at adding a build process, per #19. Not completely ready to merge since library in /examples needs to be relinked.

Shader code is concatenated into a separate file dist/wagner.shaders.js with the namespace WAGNER.shaders. My thought for this is loading all shader code is fairly heavy and users may want to just load main composer library then load whatever few shaders they need through any method they find appropriate.

Build process is using Grunt. You should have grunt-cli installed globally, then run npm install. Then run grunt server for development, or grunt build to generate build in /dist.

Makio64 commented 9 years ago

I was looking for this :)

I just tested it and works well, i push on your branch the amd support so the wagner.min.js can be use with require/webpack/etc..

Thanks!