docs: function createBuffersFromArrays(gl, arrays) {
      var buffers = { };
      Object.keys(arrays).forEach(function(key) {
        var type = key === "indices" ? gl.ELEMENT_ARRAY_BUFFER : gl.ARRAY_BUFFER;
        var array = makeTypedArray(arrays[key], name);
        buffers[key] = createBufferFromTypedArray(gl, array, type);
      });
  
      // hrm
      if (arrays.indices) {
        buffers.numElements = arrays.indices.length;
      } else if (arrays.position) {
        buffers.numElements = arrays.position.length / 3;
      }
  
      return buffers;
    }