EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

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

 

 

Anzeigen:
© 2014 Microsoft