PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial

class QTextureMaterial

The QTextureMaterial provides a default implementation of a simple unlit texture material. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial

Synopsis

Properties

Methods

Slots

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:
property textureOffsetᅟ: QVector2D

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:

parentQNode

Constructs a new QTextureMaterial instance with parent object parent.

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:

textureQAbstractTexture

See also

texture()

Setter of property textureᅟ .

setTextureOffset(textureOffset)
Parameters:

textureOffsetQVector2D

See also

textureOffset()

Setter of property textureOffsetᅟ .

setTextureTransform(matrix)
Parameters:

matrixQMatrix3x3

See also

textureTransform()

Setter of property textureTransformᅟ .

texture()
Return type:

QAbstractTexture

See also

setTexture()

Getter of property textureᅟ .

textureChanged(texture)
Parameters:

textureQAbstractTexture

Notification signal of property textureᅟ .

textureOffset()
Return type:

QVector2D

See also

setTextureOffset()

Getter of property textureOffsetᅟ .

textureOffsetChanged(textureOffset)
Parameters:

textureOffsetQVector2D

Notification signal of property textureOffsetᅟ .

textureTransform()
Return type:

QMatrix3x3

See also

setTextureTransform()

Getter of property textureTransformᅟ .

textureTransformChanged(textureTransform)
Parameters:

textureTransformQMatrix3x3

Notification signal of property textureTransformᅟ .