class WEBGLDrawBuffers
package js.html.webgl.extension
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 also:
Static variables
staticinlineread onlyMAX_COLOR_ATTACHMENTS_WEBGL:Int = 36063
A GLint
indicating the maximum number of framebuffer color attachment points.
staticinlineread onlyMAX_DRAW_BUFFERS_WEBGL:Int = 34852
A GLint
indicating the maximum number of draw buffers.
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).