EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

blendFuncSeparate method

Sets the weighting factors that are used by blendEquationSeparate.

IE11

 

Syntax

WebGLRenderingContext.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);

Parameters

srcRGB [in]

Type: Number

One of the following:

ValueMeaning
gl.ZERO

The initial value.

gl.ONE
gl.SRC_COLOR
gl.ONE_MINUS_SRC_COLOR
gl.DST_COLOR
gl.ONE_MINUS_DST_COLOR
gl.SRC_ALPHA
gl.ONE_MINUS_SRC_ALPHA
gl.DST_ALPHA
gl.ONE_MINUS_DST_ALPHA

 

dstRGB [in]

Type: Number

One of the following:

ValueMeaning
gl.ZERO

The initial value.

gl.ONE
gl.SRC_COLOR
gl.ONE_MINUS_SRC_COLOR
gl.DST_COLOR
gl.ONE_MINUS_DST_COLOR
gl.SRC_ALPHA
gl.ONE_MINUS_SRC_ALPHA
gl.DST_ALPHA
gl.ONE_MINUS_DST_ALPHA

 

srcAlpha [in]

Type: Number

Uses the same constants as srcRGB.

dstAlpha [in]

Type: Number

Uses the same constants as srcAlpha.

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_ENUMIf the srcRGB or the srcAlpha isn't one of the listed values.

 

See also

WebGLRenderingContext

 

 

Afficher:
© 2014 Microsoft