Set up (from http://rickyreusser.com/2016/12/07/from-nothing-to-something-in-webgl/):
yarn init -y
yarn add angle-normals browserify budo bunny indexhtmlify regl regl-camera
Add to package.json
"scripts": {
"start": "budo index.js --open --live --host localhost",
"build": "browserify index.js | indexhtmlify > index.html"
},
Run yarn run start
to dev, yarn run build
to generate a build index.html
.
yarn run hmr-start
almost works - not sure how to structure the regl
code inside of ud
.