The QMetalRoughMaterial provides a default implementation of PBR lighting. 更多...
头: | #include <QMetalRoughMaterial> |
qmake: | QT += 3dextras |
Since: | Qt 5.9 |
继承: | Qt3DRender::QMaterial |
QMetalRoughMaterial (Qt3DCore::QNode * parent = nullptr) | |
~QMetalRoughMaterial () | |
QColor | baseColor () const |
float | metalness () const |
float | roughness () const |
void | setBaseColor (const QColor & baseColor ) |
void | setMetalness (float metalness ) |
void | setRoughness (float roughness ) |
void | baseColorChanged (const QColor & baseColor ) |
void | metalnessChanged (float metalness ) |
void | roughnessChanged (float roughness ) |
QMetalRoughMaterial (QMetalRoughMaterialPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
The QMetalRoughMaterial provides a default implementation of PBR lighting.
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 base color of the material.
访问函数:
QColor | baseColor () const |
void | setBaseColor (const QColor & baseColor ) |
通知程序信号:
void | baseColorChanged (const QColor & baseColor ) |
Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).
访问函数:
float | metalness () const |
void | setMetalness (float metalness ) |
通知程序信号:
void | metalnessChanged (float metalness ) |
Holds the current roughness level of the material.
访问函数:
float | roughness () const |
void | setRoughness (float roughness ) |
通知程序信号:
void | roughnessChanged (float roughness ) |
Default constructs an instance of QMetalRoughMaterial.
[protected]
QMetalRoughMaterial::
QMetalRoughMaterial
(
QMetalRoughMaterialPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.
销毁 QMetalRoughMaterial 实例。