Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

blendEquationSeparate method

Controls the blending of an incoming source fragment's R, G, B, and A values with a destination R, G, B, and A values as stored in the fragment's WebGLFramebuffer.

IE11

 

Syntax

WebGLRenderingContext.blendEquationSeparate(modeRGB, modeAlpha);

Parameters

modeRGB [in]

Type: Number

One of these values:

ValueMeaning
gl.FUNC_ADD

Adds

gl.FUNC_SUBTRACT
gl.FUNC_REVERSE_SUBTRACT

 

modeAlpha [in]

Type: Number

One of these values:

gl.FUNC_ADD
gl.FUNC_SUBTRACT
gl.FUNC_REVERSE_SUBTRACT

Return value

This method does not return a value.

Remarks

Blending is dependent on the incoming fragment's alpha value of the currently stored pixel.

WebGL errorDescription
gl.INVALID_ENUMIf modeRGB or modeAlpha are not one of the three possible values.

 

See also

WebGLRenderingContext
blendEquation

 

 

Show:
© 2015 Microsoft