diff options
-rw-r--r-- | src/render/lights/qspotlight.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/lights/qspotlight.cpp b/src/render/lights/qspotlight.cpp index 79bb592b6..54ed8da63 100644 --- a/src/render/lights/qspotlight.cpp +++ b/src/render/lights/qspotlight.cpp @@ -39,6 +39,7 @@ #include "qspotlight.h" #include "qspotlight_p.h" +#include "shaderdata_p.h" #include <Qt3DCore/qpropertyupdatedchange.h> QT_BEGIN_NAMESPACE @@ -72,6 +73,7 @@ QSpotLightPrivate::QSpotLightPrivate() m_shaderData->setProperty("linearAttenuation", 0.0f); m_shaderData->setProperty("quadraticAttenuation", 0.0f); m_shaderData->setProperty("direction", QVector3D(0.0f, -1.0f, 0.0f)); + m_shaderData->setProperty("directionTransformed", Render::ShaderData::ModelToWorldDirection); m_shaderData->setProperty("cutOffAngle", 45.0f); } |