MDN self-hosted library · e01.org

WebGLRenderingContext: blendEquationSeparate() method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_SUBTRACT);
js
gl.getParameter(gl.BLEND_EQUATION_RGB) === gl.FUNC_ADD;
// true

gl.getParameter(gl.BLEND_EQUATION_ALPHA) === gl.FUNC_ADD;
// true