RenderStateManager.AlphaTestEnable Property |
Language: |
Retrieves or sets a render state that enables a per-pixel alpha test.
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);
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.
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.
Feedback? Please provide us with your comments on this topic.