gl.blitFramebuffer(
0,
0,
canvas.width,
canvas.height,
0,
0,
canvas.width,
canvas.height,
gl.COLOR_BUFFER_BIT,
gl.NEAREST,
);WebGL2RenderingContext: blitFramebuffer() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.