summaryrefslogtreecommitdiffstats
path: root/src/extras/defaults/qtexturedmetalroughmaterial.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2017-02-21 14:43:15 +0100
committerKevin Ottens <kevin.ottens@kdab.com>2017-02-23 12:58:51 +0000
commit82ff575d3f7b7bc114106dbb23b148837c5e96f1 (patch)
treec1af21d9f928152f7932f703eae0e20f6fa5339b /src/extras/defaults/qtexturedmetalroughmaterial.cpp
parentfdf1ef6f6c44fc8c51e7a226418c336e0478fe01 (diff)
Move environment light uniforms in light.inc.frag
Change-Id: I0ce7302b7c1cf8912b925d31d074739208936426 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/extras/defaults/qtexturedmetalroughmaterial.cpp')
-rw-r--r--src/extras/defaults/qtexturedmetalroughmaterial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/defaults/qtexturedmetalroughmaterial.cpp b/src/extras/defaults/qtexturedmetalroughmaterial.cpp
index ea7c7b9d7..b8faff7ed 100644
--- a/src/extras/defaults/qtexturedmetalroughmaterial.cpp
+++ b/src/extras/defaults/qtexturedmetalroughmaterial.cpp
@@ -72,8 +72,8 @@ QTexturedMetalRoughMaterialPrivate::QTexturedMetalRoughMaterialPrivate()
, m_roughnessParameter(new QParameter(QStringLiteral("roughnessMap"), m_roughnessTexture))
, m_ambientOcclusionParameter(new QParameter(QStringLiteral("ambientOcclusionMap"), m_ambientOcclusionTexture))
, m_normalParameter(new QParameter(QStringLiteral("normalMap"), m_normalTexture))
- , m_environmentIrradianceParameter(new QParameter(QStringLiteral("skyIrradiance"), m_environmentIrradianceTexture))
- , m_environmentSpecularParameter(new QParameter(QStringLiteral("skySpecular"), m_environmentSpecularTexture))
+ , m_environmentIrradianceParameter(new QParameter(QStringLiteral("envLight.irradiance"), m_environmentIrradianceTexture))
+ , m_environmentSpecularParameter(new QParameter(QStringLiteral("envLight.specular"), m_environmentSpecularTexture))
, m_metalRoughEffect(new QEffect())
, m_metalRoughGL3Technique(new QTechnique())
, m_metalRoughGL3RenderPass(new QRenderPass())