diff options
-rw-r--r-- | src/render/lights/qpointlight.cpp | 2 | ||||
-rw-r--r-- | src/render/lights/qspotlight.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/render/lights/qpointlight.cpp b/src/render/lights/qpointlight.cpp index 1936ef4f4..c94078995 100644 --- a/src/render/lights/qpointlight.cpp +++ b/src/render/lights/qpointlight.cpp @@ -64,7 +64,7 @@ namespace Qt3DRender { QPointLightPrivate::QPointLightPrivate() : QAbstractLightPrivate(QAbstractLight::PointLight) { - m_shaderData->setProperty("constantAttenuation", 0.0f); + m_shaderData->setProperty("constantAttenuation", 1.0f); m_shaderData->setProperty("linearAttenuation", 0.0f); m_shaderData->setProperty("quadraticAttenuation", 0.0f); } diff --git a/src/render/lights/qspotlight.cpp b/src/render/lights/qspotlight.cpp index aa2c8c201..a3dd91a6f 100644 --- a/src/render/lights/qspotlight.cpp +++ b/src/render/lights/qspotlight.cpp @@ -68,7 +68,7 @@ namespace Qt3DRender { QSpotLightPrivate::QSpotLightPrivate() : QAbstractLightPrivate(QAbstractLight::SpotLight) { - m_shaderData->setProperty("constantAttenuation", 0.0f); + m_shaderData->setProperty("constantAttenuation", 1.0f); m_shaderData->setProperty("linearAttenuation", 0.0f); m_shaderData->setProperty("quadraticAttenuation", 0.0f); m_shaderData->setProperty("direction", QVector3D(0.0f, -1.0f, 0.0f)); |