Class: BlendState

BlendState

BlendState defines the blend mode the renderer should use. Default presets include BlendState.ALPHA, BlendState.ADD and BlendState.MULTIPLY.


new BlendState(srcFactor, dstFactor, operator, color)

Parameters:
Name Type Description
srcFactor

The source blend factor.

dstFactor

The destination blend factor.

operator

The blend operator.

color

The blend color.

Author:
  • derschmale <http://www.derschmale.com>

Members


alphaDstFactor

The source blend factor for the alpha.

See:

alphaOperator

The blend operator for the alpha.

See:

alphaSrcFactor

The source blend factor for the alpha.

See:

color

The blend color.

See:

dstFactor

The destination blend factor.

See:

enabled

Defines whether blending is enabled.


operator

The blend operator.

See:

srcFactor

The source blend factor.

See:

Methods


clone()

Creates a copy of this BlendState.