summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-16 03:04:29 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-16 03:04:29 +0100
commite8f551be32913f5a9f9e9ce011b172a4a2a366b0 (patch)
tree2436569cc45f47dd4f2a67c737b72967219671b6 /src
parent306bc79ec33eb9130049cd124673a1e90a8232e6 (diff)
parent7f9fdca73a17060b9d69db00b5d480690dcae935 (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'src')
-rw-r--r--src/extras/defaults/qdiffusespecularmapmaterial.cpp10
-rw-r--r--src/extras/defaults/qdiffusespecularmaterial.cpp38
-rw-r--r--src/extras/defaults/qskyboxentity.cpp5
-rw-r--r--src/plugins/sceneparsers/sceneparsers.pro2
4 files changed, 37 insertions, 18 deletions
diff --git a/src/extras/defaults/qdiffusespecularmapmaterial.cpp b/src/extras/defaults/qdiffusespecularmapmaterial.cpp
index 0acf610e9..e1d23622c 100644
--- a/src/extras/defaults/qdiffusespecularmapmaterial.cpp
+++ b/src/extras/defaults/qdiffusespecularmapmaterial.cpp
@@ -217,7 +217,7 @@ void QDiffuseSpecularMapMaterialPrivate::handleTextureScaleChanged(const QVarian
\list
\li Ambient is the color that is emitted by an object without any other light source.
- \li Diffuse is the color that is emitted for rought surface reflections with the lights.
+ \li Diffuse is the color that is emitted for rough surface reflections with the lights.
\li Specular is the color emitted for shiny surface reflections with the lights.
\li The shininess of a surface is controlled by a float property.
\endlist
@@ -246,7 +246,8 @@ QDiffuseSpecularMapMaterial::~QDiffuseSpecularMapMaterial()
/*!
\property QDiffuseSpecularMapMaterial::ambient
- Holds the current ambient color.
+ Holds the current ambient color that is emitted by an object without any
+ other light source.
*/
QColor QDiffuseSpecularMapMaterial::ambient() const
{
@@ -297,7 +298,10 @@ QAbstractTexture *QDiffuseSpecularMapMaterial::specular() const
/*!
\property QDiffuseSpecularMapMaterial::shininess
- Holds the current shininess as a float value.
+ Holds the current shininess as a float value. Higher values of shininess result in
+ a smaller and brighter highlight.
+
+ Defaults to 150.0.
*/
float QDiffuseSpecularMapMaterial::shininess() const
{
diff --git a/src/extras/defaults/qdiffusespecularmaterial.cpp b/src/extras/defaults/qdiffusespecularmaterial.cpp
index 14e1c2766..be187b46a 100644
--- a/src/extras/defaults/qdiffusespecularmaterial.cpp
+++ b/src/extras/defaults/qdiffusespecularmaterial.cpp
@@ -253,7 +253,7 @@ void QDiffuseSpecularMaterialPrivate::handleTextureScaleChanged(const QVariant &
\list
\li Ambient is the color that is emitted by an object without any other
light source.
- \li Diffuse is the color that is emitted for rought surface reflections
+ \li Diffuse is the color that is emitted for rough surface reflections
with the lights.
\li Specular is the color emitted for shiny surface reflections with the
lights.
@@ -285,12 +285,14 @@ QDiffuseSpecularMaterial::~QDiffuseSpecularMaterial()
/*!
\property QDiffuseSpecularMaterial::ambient
- Holds the ambient color.
+ Holds the ambient color that is emitted by an object without any other
+ light source.
*/
/*!
\qmlproperty color DiffuseSpecularMaterial::ambient
- Holds the ambient color.
+ Holds the ambient color that is emitted by an object without any other
+ light source.
*/
QColor QDiffuseSpecularMaterial::ambient() const
{
@@ -301,14 +303,16 @@ QColor QDiffuseSpecularMaterial::ambient() const
/*!
\property QDiffuseSpecularMaterial::diffuse
- Holds the diffuse color of the material. This can be either a plain color
- value or a texture.
+ Holds the diffuse color of the material that is emitted for rough surface
+ reflections with the lights. This can be either a plain color value or a
+ texture.
*/
/*!
\qmlproperty var DiffuseSpecularMaterial::diffuse
- Holds the diffuse color of the material. This can be either a plain color
- value or a texture.
+ Holds the diffuse color of the material that is emitted for rough surface
+ reflections with the lights. This can be either a plain color value or a
+ texture.
*/
QVariant QDiffuseSpecularMaterial::diffuse() const
{
@@ -319,14 +323,16 @@ QVariant QDiffuseSpecularMaterial::diffuse() const
/*!
\property QDiffuseSpecularMaterial::specular
- Holds the specular color of the material. This can be either a plain color
- value or a texture.
+ Holds the specular color of the material that is emitted for shiny surface
+ reflections with the lights. This can be either a plain color value or a
+ texture.
*/
/*!
\qmlproperty var DiffuseSpecularMaterial::specular
- Holds the specular color of the material. This can be either a plain color
- value or a texture.
+ Holds the specular color of the material that is emitted for shiny surface
+ reflections with the lights. This can be either a plain color value or a
+ texture.
*/
QVariant QDiffuseSpecularMaterial::specular() const
{
@@ -337,12 +343,18 @@ QVariant QDiffuseSpecularMaterial::specular() const
/*!
\property QDiffuseSpecularMaterial::shininess
- Holds the shininess exponent.
+ Holds the shininess exponent. Higher values of shininess result in
+ a smaller and brighter highlight.
+
+ Defaults to 150.0.
*/
/*!
\qmlproperty real DiffuseSpecularMaterial::shininess
- Holds the shininess exponent.
+ Holds the shininess exponent. Higher values of shininess result in
+ a smaller and brighter highlight.
+
+ Defaults to 150.0.
*/
float QDiffuseSpecularMaterial::shininess() const
{
diff --git a/src/extras/defaults/qskyboxentity.cpp b/src/extras/defaults/qskyboxentity.cpp
index 9cd199f1a..7de552b38 100644
--- a/src/extras/defaults/qskyboxentity.cpp
+++ b/src/extras/defaults/qskyboxentity.cpp
@@ -293,7 +293,10 @@ void QSkyboxEntity::setExtension(const QString &extension)
/*!
\property QSkyboxEntity::extension
- Contains the extension of the Skybox.
+ Contains the extension of the filename for the skybox image, including the
+ leading '.'.
+
+ The default value is: .png
*/
/*!
* Returns the extension
diff --git a/src/plugins/sceneparsers/sceneparsers.pro b/src/plugins/sceneparsers/sceneparsers.pro
index e4b421606..9bb0ada36 100644
--- a/src/plugins/sceneparsers/sceneparsers.pro
+++ b/src/plugins/sceneparsers/sceneparsers.pro
@@ -2,7 +2,7 @@ TEMPLATE = subdirs
# QNX is not supported, and Linux GCC 4.9 on ARM chokes on the assimp
# sources (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66964).
QT_FOR_CONFIG += 3dcore-private
-qtConfig(assimp):if(qtConfig(system-assimp)|android-clang|!cross_compile): {
+qtConfig(assimp):if(qtConfig(system-assimp)|android-clang|gcc:greaterThan(QT_GCC_MAJOR_VERSION, 4)): {
SUBDIRS += assimp
}
SUBDIRS += gltf