Bagikan melalui


RenderState.AlphaFunction Property

Gets or sets the comparison function for the alpha test. The default is CompareFunction.Always.

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

Syntax

public CompareFunction AlphaFunction { get; set; }

Property Value

A member of the CompareFunction enumeration that represents the comparison function to set or get.

See Also

Reference

RenderState Class
RenderState Members
AlphaTestEnable
ReferenceAlpha
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista