QAlphaTest¶
The QAlphaTest
class specify alpha reference test. More…
Synopsis¶
Functions¶
def
alphaFunction
()def
referenceValue
()
Slots¶
def
setAlphaFunction
(alphaFunction)def
setReferenceValue
(referenceValue)
Signals¶
def
alphaFunctionChanged
(alphaFunction)def
referenceValueChanged
(referenceValue)
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.
- class PySide6.Qt3DRender.Qt3DRender.QAlphaTest([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.AlphaFunction¶
Enumeration for the alpha function values
Constant
Description
Qt3DRender.QAlphaTest.Never
Never pass alpha test
Qt3DRender.QAlphaTest.Always
Always pass alpha test
Qt3DRender.QAlphaTest.Less
Pass alpha test if fragment alpha is less than reference value
Qt3DRender.QAlphaTest.LessOrEqual
Pass alpha test if fragment alpha is less than or equal to reference value
Qt3DRender.QAlphaTest.Equal
Pass alpha test if fragment alpha is equal to reference value
Qt3DRender.QAlphaTest.GreaterOrEqual
Pass alpha test if fragment alpha is greater than or equal to reference value
Qt3DRender.QAlphaTest.Greater
Pass alpha test if fragment alpha is greater than reference value
Qt3DRender.QAlphaTest.NotEqual
Pass alpha test if fragment alpha is not equal to reference value
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.alphaFunction()¶
- Return type
Holds the alpha function used by the alpha test. Default is Never.
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.alphaFunctionChanged(alphaFunction)¶
- Parameters
alphaFunction –
AlphaFunction
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.referenceValue()¶
- Return type
float
Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.referenceValueChanged(referenceValue)¶
- Parameters
referenceValue – float
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.setAlphaFunction(alphaFunction)¶
- Parameters
alphaFunction –
AlphaFunction
Holds the alpha function used by the alpha test. Default is Never.
- PySide6.Qt3DRender.Qt3DRender.QAlphaTest.setReferenceValue(referenceValue)¶
- Parameters
referenceValue – float
Holds the reference value used by the alpha test. Default is 0.0. When set, the value is clamped between 0 and 1.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.