PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial¶
- class QTextureMaterial¶
The
QTextureMaterial
provides a default implementation of a simple unlit texture material. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
texture()
def
textureOffset()
Slots¶
def
setTexture()
Signals¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property alphaBlendingᅟ: bool¶
Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.
- Access functions:
- property textureᅟ: QAbstractTexture¶
Holds the current texture used by the material.
- Access functions:
This is a utility property. It sets the translation component of the general texture transform matrix
- Access functions:
- property textureTransformᅟ: QMatrix3x3¶
Holds the current texture transform. It is applied to texture coordinates at render time. Defaults to identity matrix.
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QTextureMaterial
instance with parent objectparent
.- alphaBlendingEnabledChanged(enabled)¶
- Parameters:
enabled – bool
Notification signal of property
alphaBlendingᅟ
.- isAlphaBlendingEnabled()¶
- Return type:
bool
Getter of property
alphaBlendingᅟ
.- setAlphaBlendingEnabled(enabled)¶
- Parameters:
enabled – bool
See also
isAlphaBlendingEnabled()
Setter of property
alphaBlendingᅟ
.- setTexture(texture)¶
- Parameters:
texture –
QAbstractTexture
See also
texture()
Setter of property
textureᅟ
.Setter of property
textureOffsetᅟ
.- setTextureTransform(matrix)¶
- Parameters:
matrix –
QMatrix3x3
See also
textureTransform()
Setter of property
textureTransformᅟ
.- texture()¶
- Return type:
QAbstractTexture
See also
setTexture()
Getter of property
textureᅟ
.- textureChanged(texture)¶
- Parameters:
texture –
QAbstractTexture
Notification signal of property
textureᅟ
.Getter of property
textureOffsetᅟ
.Notification signal of property
textureOffsetᅟ
.- textureTransform()¶
- Return type:
See also
setTextureTransform()
Getter of property
textureTransformᅟ
.- textureTransformChanged(textureTransform)¶
- Parameters:
textureTransform –
QMatrix3x3
Notification signal of property
textureTransformᅟ
.