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). 更多...
头: | #include <QTexturedMetalRoughMaterial> |
qmake: | QT += 3dextras |
Since: | Qt 5.9 |
继承: | Qt3DRender::QMaterial |
|
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 |
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 ) |
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 ) |
QTexturedMetalRoughMaterial (QTexturedMetalRoughMaterialPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
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.
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
访问函数:
Qt3DRender::QAbstractTexture * | ambientOcclusion () const |
void | setAmbientOcclusion (Qt3DRender::QAbstractTexture * ambientOcclusion ) |
通知程序信号:
void | ambientOcclusionChanged (Qt3DRender::QAbstractTexture * ambientOcclusion ) |
Holds the current base color map texture.
By default, the base color texture has the following properties:
访问函数:
Qt3DRender::QAbstractTexture * | baseColor () const |
void | setBaseColor (Qt3DRender::QAbstractTexture * baseColor ) |
通知程序信号:
void | baseColorChanged (Qt3DRender::QAbstractTexture * baseColor ) |
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
访问函数:
Qt3DRender::QAbstractTexture * | metalness () const |
void | setMetalness (Qt3DRender::QAbstractTexture * metalness ) |
通知程序信号:
void | metalnessChanged (Qt3DRender::QAbstractTexture * metalness ) |
Holds the current normal map texture.
By default, the normal texture has the following properties:
访问函数:
Qt3DRender::QAbstractTexture * | normal () const |
void | setNormal (Qt3DRender::QAbstractTexture * normal ) |
通知程序信号:
void | normalChanged (Qt3DRender::QAbstractTexture * normal ) |
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
访问函数:
Qt3DRender::QAbstractTexture * | roughness () const |
void | setRoughness (Qt3DRender::QAbstractTexture * roughness ) |
通知程序信号:
void | roughnessChanged (Qt3DRender::QAbstractTexture * roughness ) |
Default constructs an instance of QTexturedMetalRoughMaterial.
[protected]
QTexturedMetalRoughMaterial::
QTexturedMetalRoughMaterial
(
QTexturedMetalRoughMaterialPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.
销毁 QTexturedMetalRoughMaterial 实例。