Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RenderState.AlphaTestEnable Property

Gets or sets a render state that enables a per-pixel alpha test. The default value is false.

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

public bool AlphaTestEnable { get; set; }

Property Value

true if per-pixel alpha blending is enabled; false otherwise.

If the test passes, the pixel is processed by the frame buffer. Otherwise, all frame-buffer processing is skipped for the pixel. The test is done by comparing the incoming alpha value with the reference alpha value, using the comparison function provided by AlphaFunction. The reference alpha value is determined by the value set for ReferenceAlpha.

Xbox 360, Windows XP SP2, Windows Vista
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.