> ## Name

> AlphaFunc - 3D API alpha function

> ## Usage

> AlphaFunc = float(func) AlphaFunc = float2(func, ref)

> ## Valid Enumerants

> func: Never, Less, LEqual, Equal, Greater, NotEqual, GEqual, Always

> ## Description

> Specify the alpha comparison function. See the OpenGL glAlphaFunc manual page for details. See the D3DRS_ALPHAFUNC render state description for DirectX 9.

> The standard reset callback sets the AlphaFunc state to float(Always) or float2(Always, 0).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> AlphaArg0, AlphaArg1, AlphaArg2, AlphaBlendEnable, AlphaOp, AlphaRef, AlphaTestEnable, ColorArg0, ColorArg1, ColorArg2, ColorOp, BlendOpAlpha