RenderStateManager.AlphaTestEnable Property (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic Public Property AlphaTestEnable As Boolean
C# public bool AlphaTestEnable { get; set; }
C++ public:
property bool AlphaTestEnable {
        bool get();
        void set(bool value);
}
JScript 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.