WEBGL_draw_buffers

Overview

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.

Location

Required Methods


drawBuffersWEBGL

Defines the draw buffers to which all fragment colors are written. (When using WebGL2, this method is available as gl.drawBuffers() by default).

 

method drawBuffersWEBGL(parbuffers: dynamic)

 

void drawBuffersWEBGL(dynamic parbuffers)

 

func drawBuffersWEBGL(_ parbuffers: dynamic)

 

void drawBuffersWEBGL(dynamic parbuffers)

 

Sub drawBuffersWEBGL(parbuffers As dynamic)

Parameters:

  • parbuffers: