Sdílet prostřednictvím


RenderState.AlphaSourceBlend Property

Gets or sets the separate alpha channel blending factor. This factor represents a value by which to multiply the alpha channel only. The default is Blend.One.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public Blend AlphaSourceBlend { get; set; }

Property Value

A value from the Blend enumeration.

Remarks

Warning

This value is used for blending the alpha channel only, not for alpha blending of the entire pixel. For setting the blending mode for alpha blending of the source color, see SourceBlend.

This value is ignored unless SeparateAlphaBlendEnabled is true.

See Also

Reference

RenderState.SourceBlend Property
RenderState Class
RenderState Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista