regl simplifies WebGL programming by removing as much shared state as it can get away with. To do this, it replaces the WebGL API with two fundamental abstractions, resources and commands: A resource is a handle to a GPU resident object, like a texture, FBO or buffer. A command is a complete representation of the WebGL state required to perform some draw call. To define a command you specify a mix