diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-26 22:21:21 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-26 22:21:22 +0200 |
commit | fbe631c046a2246db46d0687d1c771d7d63a74e0 (patch) | |
tree | 9c66a72ab438b8df4cd2edd73d1d2864b4c07bce /src/extras | |
parent | 829675b65b8a9d661828b18bbd2703744d4c3db7 (diff) | |
parent | 08b40b9be75242505a773dc5b2a96a5ef481d6e6 (diff) |
Merge remote-tracking branch 'origin/5.12' into 5.13
Change-Id: I4a35126d98e04ed228e5b3a4ed9157995bef3a0a
Diffstat (limited to 'src/extras')
-rw-r--r-- | src/extras/defaults/qmetalroughmaterial.cpp | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/src/extras/defaults/qmetalroughmaterial.cpp b/src/extras/defaults/qmetalroughmaterial.cpp index c6913b490..d404f03de 100644 --- a/src/extras/defaults/qmetalroughmaterial.cpp +++ b/src/extras/defaults/qmetalroughmaterial.cpp @@ -171,6 +171,16 @@ void QMetalRoughMaterialPrivate::handleTextureScaleChanged(const QVariant &var) */ /*! + \qmltype MetalRoughMaterial + \instantiates Qt3DExtras::QMetalRoughMaterial + \inqmlmodule Qt3D.Extras + + \brief 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. +*/ + +/*! Constructs a new QMetalRoughMaterial instance with parent object \a parent. */ QMetalRoughMaterial::QMetalRoughMaterial(QNode *parent) @@ -201,6 +211,12 @@ QMetalRoughMaterial::~QMetalRoughMaterial() 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". */ +/*! + \qmlproperty color Qt3D.Extras::MetalRoughMaterial::baseColor + + 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". +*/ QVariant QMetalRoughMaterial::baseColor() const { Q_D(const QMetalRoughMaterial); @@ -210,7 +226,15 @@ QVariant QMetalRoughMaterial::baseColor() const /*! \property QMetalRoughMaterial::metalness - Holds the current metalness level of the material, since is a value between + 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. +*/ +/*! + \qmlproperty real Qt3D.Extras::MetalRoughMaterial::metalness + + 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. @@ -228,6 +252,13 @@ QVariant QMetalRoughMaterial::metalness() const plain uniform value or a texture. By default the value of this property is 0. */ +/*! + \qmlproperty real Qt3D.Extras::MetalRoughMaterial::roughness + + 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. +*/ QVariant QMetalRoughMaterial::roughness() const { Q_D(const QMetalRoughMaterial); @@ -240,6 +271,12 @@ QVariant QMetalRoughMaterial::roughness() const 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. */ +/*! + \qmlproperty Texture Qt3D.Extras::MetalRoughMaterial::ambientOcclusion + + 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. +*/ QVariant QMetalRoughMaterial::ambientOcclusion() const { Q_D(const QMetalRoughMaterial); @@ -252,6 +289,12 @@ QVariant QMetalRoughMaterial::ambientOcclusion() const 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. */ +/*! + \qmlproperty Texture Qt3D.Extras::MetalRoughMaterial::normal + + 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. +*/ QVariant QMetalRoughMaterial::normal() const { Q_D(const QMetalRoughMaterial); @@ -264,6 +307,12 @@ QVariant QMetalRoughMaterial::normal() const Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0. */ +/*! + \qmlproperty real Qt3D.Extras::MetalRoughMaterial::textureScale + + Holds the current texture scale. It is applied as a multiplier to texture + coordinates at render time. Defaults to 1.0. +*/ float QMetalRoughMaterial::textureScale() const { Q_D(const QMetalRoughMaterial); |