WebGLRenderBufferis used as an offscreen destination of rendering by attaching it to a
WebGLRenderBuffers are created with
createRenderbuffer(). Use readPixels() to retrieve the contents of the buffer. If you need to draw the offscreen rendered content into the canvas, use a
WebGLTextureas the destination of the frame buffer instead of a render buffer.