glBlendFuncSeparateGLSRCALPHA
The glBlendFuncSeparate command is an OpenGL primitive used to specify blending equations for the RGB and alpha components independently. It replaces the earlier single‑parameter blending call glBlendFunc when finer control over the alpha channel is required. The function takes four arguments: srcRGB, dstRGB, srcAlpha, and dstAlpha. Each of these is an enum specifying a blending factor such as GL_ONE, GL_ZERO, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, and so on. The two first parameters control how the source and destination color values are weighted during color blending, while the last two parameters apply to the alpha component.
The separate calling mechanism became standardized in the OpenGL 2.0 core profile and is widely supported in
In practice, programmers combine glBlendFuncSeparate with glBlendEquationSeparate and appropriate shader logic to produce sophisticated visual effects.