glBlendFuncGLONE
glBlendFuncGLONE refers to using the OpenGL blend factor GL_ONE as the source factor in the blending function glBlendFunc. In OpenGL, color blending combines a fragment’s source color with the color already stored in the framebuffer using two factors: sfactor for the source and dfactor for the destination. GL_ONE is a blending factor that represents the value 1.0, meaning the corresponding color component is not scaled.
Usage and behavior: glBlendFunc takes two factors, such that the resulting color is (sfactor * source) + (dfactor
- glBlendFunc(GL_ONE, GL_ZERO): the source completely overwrites the destination (no blending).
- glBlendFunc(GL_ONE, GL_ONE): additive blending, where the source color is added to the destination.
- glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA): a form of compositing where the source is fully added while the destination is
Notes: GL_ONE can be used with premultiplied or non-premultiplied alpha contexts, but its effect depends on
See also: glBlendFunc, GL_ONE, GL_SRC_ALPHA, additive blending, premultiplied alpha, glBlendFuncSeparate.