RenderStateManager.AlphaTestEnable Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets a render state that enables a per-pixel alpha test.

Definition

Visual Basic .NET Public Property AlphaTestEnable As Boolean
C# public bool AlphaTestEnable { get; set; }
Managed C++ public: __property bool get_AlphaTestEnable();
public: __property void set_AlphaTestEnable(bool);
JScript .NET public function get AlphaTestEnable() : boolean
public function set AlphaTestEnable(boolean);

Property Value

System.Boolean . Set to true to enable per-pixel alpha testing, or false to disable it. The default value is false.

This property is read/write. 

Remarks

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 RenderStateManager.AlphaFunction. The reference alpha value is determined by the value set for RenderStateManager.ReferenceAlpha.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.