QAlphaTest¶
- PyQt5.Qt3DRender.QAlphaTest
Inherits from QRenderState.
Description¶
The QAlphaTest class specify alpha reference test.
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.
Enums¶
- AlphaFunction
Enumeration for the alpha function values
Member
Value
Description
Always 0x0207
Always pass alpha test
Equal 0x0202
Pass alpha test if fragment alpha is equal to reference value
Greater 0x0204
Pass alpha test if fragment alpha is greater than reference value
GreaterOrEqual 0x0206
Pass alpha test if fragment alpha is greater than or equal to reference value
Less 0x0201
Pass alpha test if fragment alpha is less than reference value
LessOrEqual 0x0203
Pass alpha test if fragment alpha is less than or equal to reference value
Never 0x0200
Never pass alpha test
NotEqual 0x0205
Pass alpha test if fragment alpha is not equal to reference value
Methods¶
- __init__(parent: QNode = None)
TODO
- alphaFunction() → AlphaFunction
See also
- referenceValue() → float
See also
- setAlphaFunction(AlphaFunction)
See also
- setReferenceValue(float)
See also