Bagikan melalui


RenderState.SeparateAlphaBlendEnabled Property

Enables or disables the separate blend mode for the alpha channel. The default is false.

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

Syntax

public bool SeparateAlphaBlendEnabled { get; set; }

Property Value

true to enable the separate blend mode for the alpha channel; false otherwise.

Remarks

When set to false, the render-target blending factors and operations applied to alpha are forced to be the same as those defined for color. This mode is effectively hard-wired to false on implementations that don't set SupportsSeparateAlphaBlend to true.

The AlphaSourceBlend and AlphaDestinationBlend render states determine the type of separate alpha blending.

See Also

Reference

AlphaSourceBlend
AlphaDestinationBlend
RenderState Class
RenderState Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista