docs: function _attach(gl, location, attachment, face = 0) {
    if (attachment instanceof Texture2D) {
      gl.framebufferTexture2D(
        gl.FRAMEBUFFER,
        location,
        gl.TEXTURE_2D,
        attachment._glID,
        0
      );
    } else if (attachment instanceof TextureCube) {
      gl.framebufferTexture2D(
        gl.FRAMEBUFFER,
        location,
        gl.TEXTURE_CUBE_MAP_POSITIVE_X + face,
        attachment._glID,
        0
      );
    } else {
      gl.framebufferRenderbuffer(
        gl.FRAMEBUFFER,
        location,
        gl.RENDERBUFFER,
        attachment._glID
      );
    }
  }