The WEBGL_draw_buffers
extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
Documentation WEBGL_draw_buffers by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Methods
drawBuffersWEBGL (buffers:Array<Int>):Void
Defines the draw buffers to which all fragment colors are written. (When using WebGL2RenderingContext
, this method is available as WebGL2RenderingContext.drawBuffers()
by default).