diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-04-18 12:08:23 +0100 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@theqtcompany.com> | 2016-04-19 04:07:45 +0000 |
commit | d5b665cb40c25ff8ddb5ad7ebe74e04dd91c045b (patch) | |
tree | dbef72318b5a9c23fdff84813aab20be9d5c1106 /src/render/lights/qspotlight_p.h | |
parent | 22fc2e750d88708691a33a54798a665b0c05a32f (diff) |
QSpotLight API inconsistency addressed
The access of attenuation values for both
QSpotLight and QPointLight were different.
This has now been addressed and QSpotLight
works like QPointLight.
Change-Id: I79c64e0a58c234326a7c6b01e15c49034586769a
Task-number: QTBUG-52646
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/lights/qspotlight_p.h')
-rw-r--r-- | src/render/lights/qspotlight_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/lights/qspotlight_p.h b/src/render/lights/qspotlight_p.h index 5279a131a..20d9b6042 100644 --- a/src/render/lights/qspotlight_p.h +++ b/src/render/lights/qspotlight_p.h @@ -64,11 +64,14 @@ class QSpotLightPrivate : public QLightPrivate public: QSpotLightPrivate(); - Q_DECLARE_PUBLIC(QSpotLight) - QVector3D m_attenuation; + float m_constantAttenuation; + float m_linearAttenuation; + float m_quadraticAttenuation; QVector3D m_localDirection; float m_cutOffAngle; + Q_DECLARE_PUBLIC(QSpotLight) + }; } // namespace Qt3DRender |