summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Honkamaa <mats.honkamaa@qt.io>2019-02-13 09:11:28 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-02-18 16:06:58 +0000
commit60015f387e0629b5fa6fc6268ca3cbaaaeb5cc6c (patch)
treeb664a357bb80f4877d39cbe358ed3f666a6a9ef0
parentc36a130f99b029094253ca74e9cbbc1f7e74df87 (diff)
Add clarifying text about scaling directional lights
Task-number: QT3DS-3009 Change-Id: I74ec957b26f595656802c1cf71bc40d28d3b2ed3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--doc/src/lights.qdoc12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/src/lights.qdoc b/doc/src/lights.qdoc
index 44feb042..2776f8c9 100644
--- a/doc/src/lights.qdoc
+++ b/doc/src/lights.qdoc
@@ -52,10 +52,20 @@ A directional light has infinite range and does not diminish.
\image directional-light.png
-Moving or scaling a directional light does not have any effect. The light will always
+Moving a directional light does not have any effect. The light will always
be emitted in the direction of the lights Z axis, rotating the light along its X or Y axis will
change the direction the light is emitted.
+Scaling a directional light will only have an effect in the following cases:
+
+\list
+ \li
+ If Z scale is set to a negative number, the light will be emitted in opposite direction.
+ \li
+ If the scale of any axis is set to 0, the light will be emitted along the world's Z axis.
+ Rotating the light will then have no effect.
+\endlist
+
\image directional-light-scene.png
By default, all new light objects created in Studio will be directional lights.