QMetalRoughMaterial#

The QMetalRoughMaterial provides a default implementation of PBR lighting. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial

Synopsis#

Properties#

Functions#

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 and performs per fragment lighting. Techniques are provided for OpenGL 3 and OpenGL ES 3.

class PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QMetalRoughMaterial instance with parent object parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.ambientOcclusion: object#

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.baseColor: object#

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is “grey”.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.metalness: object#

Holds the current metalness level of the material, as a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.normal: object#

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.roughness: object#

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.textureScale: float#

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

When used in conjunction with QTextureWrapMode::Repeat, textureScale provides a simple way to tile a texture across a surface. For example, a texture scale of 4.0 would result in 16 (4x4) tiles.

Access functions:
PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.ambientOcclusion()#
Return type:

object

Getter of property ambientOcclusion .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.ambientOcclusionChanged(ambientOcclusion)#
Parameters:

ambientOcclusion – object

Notification signal of property ambientOcclusion .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.baseColor()#
Return type:

object

See also

setBaseColor()

Getter of property baseColor .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.baseColorChanged(baseColor)#
Parameters:

baseColor – object

Notification signal of property baseColor .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.metalness()#
Return type:

object

See also

setMetalness()

Getter of property metalness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.metalnessChanged(metalness)#
Parameters:

metalness – object

Notification signal of property metalness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.normal()#
Return type:

object

See also

setNormal()

Getter of property normal .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.normalChanged(normal)#
Parameters:

normal – object

Notification signal of property normal .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.roughness()#
Return type:

object

See also

setRoughness()

Getter of property roughness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.roughnessChanged(roughness)#
Parameters:

roughness – object

Notification signal of property roughness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setAmbientOcclusion(ambientOcclusion)#
Parameters:

ambientOcclusion – object

Setter of property ambientOcclusion .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setBaseColor(baseColor)#
Parameters:

baseColor – object

See also

baseColor()

Setter of property baseColor .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setMetalness(metalness)#
Parameters:

metalness – object

See also

metalness()

Setter of property metalness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setNormal(normal)#
Parameters:

normal – object

See also

normal()

Setter of property normal .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setRoughness(roughness)#
Parameters:

roughness – object

See also

roughness()

Setter of property roughness .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.setTextureScale(textureScale)#
Parameters:

textureScale – float

See also

textureScale()

Setter of property textureScale .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.textureScale()#
Return type:

float

Getter of property textureScale .

PySide6.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.textureScaleChanged(textureScale)#
Parameters:

textureScale – float

Notification signal of property textureScale .