This is some boilerplate I wrote to easily start new WebGL projects without having to set up a build tool chain. It makes use of Babel and webgl-glsl-loader to compile JavaScript and GLSL together into a final JavaScript module.
- npm
- Download the latest release from the Releases page.
- Unzip the code to where you want your project to live.
- Run
npm install
to install dependencies.
The following commands are defined in package.json
:
Build a production version of bundle.js
into dist/
.
Watch files in src/
for changes, recompile on change.
Run a development server at http://localhost:8080/
. This also will watch & recompile on file changes.
- Setup instructions
- Example of usage
- Better production builds