QTextureMaterial

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

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial

Synopsis

Functions

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.

class PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QTextureMaterial instance with parent object parent.

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.alphaBlendingEnabledChanged(enabled)
Parameters

enabled – bool

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.isAlphaBlendingEnabled()
Return type

bool

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setAlphaBlendingEnabled(enabled)
Parameters

enabled – bool

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTexture(texture)
Parameters

texturePySide6.Qt3DRender.Qt3DRender.QAbstractTexture

See also

texture()

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureOffset(textureOffset)
Parameters

textureOffsetPySide6.QtGui.QVector2D

See also

textureOffset()

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureTransform(matrix)
Parameters

matrixPySide6.QtGui.QMatrix3x3

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.texture()
Return type

PySide6.Qt3DRender.Qt3DRender.QAbstractTexture

See also

setTexture()

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureChanged(texture)
Parameters

texturePySide6.Qt3DRender.Qt3DRender.QAbstractTexture

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffset()
Return type

PySide6.QtGui.QVector2D

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffsetChanged(textureOffset)
Parameters

textureOffsetPySide6.QtGui.QVector2D

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransform()
Return type

PySide6.QtGui.QMatrix3x3

PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransformChanged(textureTransform)
Parameters

textureTransformPySide6.QtGui.QMatrix3x3