3d cubes based on https://developer.mozilla.org/samples/webgl/sample6/index.html