DarkBASIC Professional Help File

DX11 SET BLEND FACTOR

Sets the blend factor used by the given blend state and, optionally, render target.
The blend factors are only used if a BLEND_FACTOR or INV_BLEND_FACTOR blending mode is specified for the blend state.
The factors work like multipliers for each colour channel during blending.

Syntax

    DX11 SET BLEND FACTOR blendState, redFactor, greenFactor, blueFactor, alphaFactor

Parameters

    blendState

> Dword
> The blend state to set the blend mode for.

    redFactor

> Float
> The blend factor to use for the red channel; the valid range is [0..1].

    greenFactor

> Float
> The blend factor to use for the green channel; the valid range is [0..1].

    blueFactor

> Float
> The blend factor to use for the blue channel; the valid range is [0..1].

    alphaFactor

> Float
> The blend factor to use for the alpha channel; the valid range is [0..1] .

Returns

This function does not return a value.

See also

BLENDSTATE Functions Menu
DX11 Function Categories