QTexturedMetalRoughMaterial Class
(Qt3DExtras::QTexturedMetalRoughMaterial)The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps). More...
Header: | #include <QTexturedMetalRoughMaterial> |
qmake: | QT += 3dextras |
Since: | Qt 5.9 |
Inherits: | Qt3DRender::QMaterial |
Properties
|
- 1 property inherited from Qt3DRender::QMaterial
- 1 property inherited from Qt3DCore::QComponent
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QTexturedMetalRoughMaterial(Qt3DCore::QNode *parent = nullptr) | |
~QTexturedMetalRoughMaterial() | |
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
Qt3DRender::QAbstractTexture * | baseColor() const |
Qt3DRender::QAbstractTexture * | metalness() const |
Qt3DRender::QAbstractTexture * | normal() const |
Qt3DRender::QAbstractTexture * | roughness() const |
- 4 public functions inherited from Qt3DRender::QMaterial
- 2 public functions inherited from Qt3DCore::QComponent
- 11 public functions inherited from Qt3DCore::QNode
- 32 public functions inherited from QObject
Public Slots
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
- 1 public slot inherited from Qt3DRender::QMaterial
- 1 public slot inherited from Qt3DCore::QComponent
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
- 1 signal inherited from Qt3DRender::QMaterial
- 3 signals inherited from Qt3DCore::QComponent
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Protected Functions
QTexturedMetalRoughMaterial(QTexturedMetalRoughMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 11 static public members inherited from QObject
Detailed Description
The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).
This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.
Property Documentation
ambientOcclusion : Qt3DRender::QAbstractTexture *
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
baseColor : Qt3DRender::QAbstractTexture *
Holds the current base color map texture.
By default, the base color texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | baseColor() const |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
Notifier signal:
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
metalness : Qt3DRender::QAbstractTexture *
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | metalness() const |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
Notifier signal:
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
normal : Qt3DRender::QAbstractTexture *
Holds the current normal map texture.
By default, the normal texture has the following properties:
- Linear minification and magnification filters
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | normal() const |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
Notifier signal:
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
roughness : Qt3DRender::QAbstractTexture *
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | roughness() const |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
Notifier signal:
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
Member Function Documentation
QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QTexturedMetalRoughMaterial.
[protected]
QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial(QTexturedMetalRoughMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Copy constructor.
QTexturedMetalRoughMaterial::~QTexturedMetalRoughMaterial()
Destroys the QTexturedMetalRoughMaterial instance.
© 2019 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.