AlphaTest QML 類型

AlphaTest 類指定 Alpha 參考測試。 更多...

import 語句: import Qt3D.Render 2.15
Since: Qt 5.7
實例化: QAlphaTest
繼承:

RenderState

特性

詳細描述

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.

特性文檔編製

alphaFunction : enumeration

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

另請參閱 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.