summaryrefslogtreecommitdiffstats
path: root/src/extras/defaults/qnormaldiffusemapmaterial.cpp
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2019-07-09 09:41:13 -0500
committerMichael Brasser <mbrasser@ford.com>2019-07-15 16:45:02 -0500
commitb63aaf574c6b4b5a40e2f137f077c694bcf79ae0 (patch)
tree1ffeee2a1f3bbbda96e588ffa57bdaabfb664959 /src/extras/defaults/qnormaldiffusemapmaterial.cpp
parentc9eb1f347a501c6915595bfb705af3aecc2fbadd (diff)
Document an example of how textureScale might be used
Change-Id: Iead857526a06b104080ab843b26c49efc22f05cc Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/extras/defaults/qnormaldiffusemapmaterial.cpp')
-rw-r--r--src/extras/defaults/qnormaldiffusemapmaterial.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extras/defaults/qnormaldiffusemapmaterial.cpp b/src/extras/defaults/qnormaldiffusemapmaterial.cpp
index 7c8260084..9d41ddb32 100644
--- a/src/extras/defaults/qnormaldiffusemapmaterial.cpp
+++ b/src/extras/defaults/qnormaldiffusemapmaterial.cpp
@@ -338,6 +338,10 @@ float QNormalDiffuseMapMaterial::shininess() const
Holds the current texture scale. It is applied as a multiplier to texture
coordinates at render time. Defaults to 1.0.
+
+ When used in conjunction with QTextureWrapMode::Repeat, textureScale provides a simple
+ way to tile a texture across a surface. For example, a texture scale of \c 4.0
+ would result in 16 (4x4) tiles.
*/
float QNormalDiffuseMapMaterial::textureScale() const
{