block by 1wheel a3b7de6adc4a16d8b3b8f46aecb94d98

hello-regl

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.

index.js

package.json