WebGL2RenderingContext.drawBuffers() method of the WebGL 2 API defines draw buffers to which
fragment colors are written into. The draw buffer settings are part of the state of the
currently bound framebuffer or the drawingbuffer if no framebuffer is bound.
Fragment shader output is not written into any color buffer.
Fragment shader output is written into the back color buffer.
Fragment shader output is written in the nth color attachment of the current framebuffer.
bufferscontains not one of the accepted values, a
gl.INVALID_ENUMerror is thrown.
|WebGL 2.0 Specification |
BCD tables only load in the browser