GL_OES_blend_equation_separate¶
Supported Hardware¶
Series5, Series5XT, Series6, Series6XE, Series6XT
Valid APIs¶
OpenGL ES 1.x
Description¶
This function extends GL_OES_blend_subtract, which adds functionality allowing a blend equation to operate on all the channels in an output colour at once. However, often a different operation is wanted for the alpha and colour channels. This extension adds a new function, glBlendEquationSeparateOES, which operates in the same way as glBlendEquationOES, except that different equations can now be specified for RGB and Alpha.
Note¶
This extension is part of the OpenGL ES 1.x Extension Pack Specification and is core functionality in OpenGL ES 2.0 and 3.0.
Registry Link¶
http://www.khronos.org/registry/gles/extensions/OES/OES_blend_equation_separate.txt
Example¶
// Set the blend equation to use additive blending for the RGB channels, but subtractive for
// the Alpha channel.
glBlendEquationSeparate(GL_FUNC_ADD_OES, GL_FUNC_SUBTRACT_OES);