GL_EXT_blend_minmax#
Supported Hardware#
Series5XT, Series6, Series6XE, Series6XT
Valid APIs#
OpenGL ES 1.x, 2.0
Description#
This extension adds two additional blending modes to OpenGL ES; GL_MIN_EXT and GL_MAX_EXT. These two blend modes compare the source and destination colours, and the result of the comparison will be the minimum/maximum colour that was written. Each component is operated on separately, so that it is entirely possible to have an output colour that has channel values from multiple different polygons.
Note#
This functionality is core to OpenGL ES 3.0.
Registry Link#
https://registry.khronos.org/OpenGL/extensions/EXT/EXT_blend_minmax.txt
Example#
// Set the blend equation to use additive blending
glBlendEquation(GL_FUNC_ADD_EXT);
// Set the blend equation to use minimum value blending
glBlendEquation(GL_MIN_EXT);
// Set the blend equation to use maximum value blending
glBlendEquation(GL_MAX_EXT);