glDrawBuffers
glDrawBuffers is a function in the OpenGL (Open Graphics Library) API used to control which of the active fragment shaders outputs are written to the currently bound framebuffer's color buffers. This function is particularly useful in advanced rendering techniques such as deferred shading, multi-pass rendering, and the use of multiple render targets (MRTs).
When a fragment shader executes, it can produce multiple output values, often referred to as varying variables.
The function takes two arguments: the number of buffers to enable, and a pointer to an array
This capability is essential for rendering complex scenes where multiple pieces of information, such as color,