EXT_blend_minmax 扩展属于 WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.

WebGL extensions are available using the WebGLRenderingContext.getExtension() method. For more information, see also 使用扩展 WebGL 教程 .

可用性: This extension is only available to WebGL1 contexts. In WebGL2 , the functionality of this extension is available on the WebGL2 context by default. The constants in WebGL2 are gl.MIN and gl.MAX .

常量

This extension adds two new constants, which can be used in WebGLRenderingContext.blendEquation() and WebGLRenderingContext.blendEquationSeparate() :

ext.MIN_EXT

Produces the minimum color components of the source and destination colors.

ext.MAX_EXT

Produces the maximum color components of the source and destination colors.

范例

var ext = gl.getExtension('EXT_blend_minmax');
gl.blendEquation(ext.MIN_EXT);
gl.blendEquation(ext.MAX_EXT);
gl.blendEquationSeparate(ext.MIN_EXT, ext.MAX_EXT);
					

规范

规范 状态 注释
EXT_blend_minmax
The definition of 'EXT_blend_minmax' in that specification.
推荐 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
EXT_blend_minmax Chrome Yes Edge 17 Firefox 33 IE ? Opera Yes Safari ? WebView Android Yes Chrome Android Yes Firefox Android ? Opera Android Yes Safari iOS ? Samsung Internet Android Yes

图例

完整支持

完整支持

兼容性未知 ?

兼容性未知

另请参阅

元数据

  • 最后修改: