The WEBGL_draw_buffers.drawBuffersWEBGL()
method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
This method is part of the WEBGL_draw_buffers
extension.
Note: When using WebGL2
, this method is available as gl.drawBuffers()
by default and the constants are named gl.COLOR_ATTACHMENT1
etc. without the "WEBGL" suffix.