- Qt 6.9
- Qt 3D
- QML Types
- Qt3D.Render (Deprecated)
- AlphaTest
- Qt 6.9.2 Reference Documentation

# AlphaTest QML Type

The AlphaTest class specify alpha reference test. More...

Import Statement: | `import Qt3D.Render 2.9`
In C++: | QAlphaTest
Inherits: | RenderState
Status: | Deprecated

- List of all members, including inherited members

## Properties

- alphaFunction : enumeration
- referenceValue : real

## Detailed Description

As the OpenGL documentation explains; The alpha test discards a fragment conditional on the outcome of a comparison between the incoming fragment's alpha value and a constant reference value.

## Property Documentation

alphaFunction : enumeration

Holds the alpha function used by the alpha test. Default is AlphaTest.Never.

- AlphaTest.Never
- AlphaTest.Always
- AlphaTest.Less
- AlphaTest.LessOrEqual
- AlphaTest.Equal
- AlphaTest.GreaterOrEqual
- AlphaTest.Greater
- AlphaTest.NotEqual

See also Qt3DRender::QAlphaTest::AlphaFunction.

referenceValue : real

Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.