summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/runtimerender/Qt3DSRenderDefaultMaterialShaderGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/Qt3DSRenderDefaultMaterialShaderGenerator.cpp b/src/runtimerender/Qt3DSRenderDefaultMaterialShaderGenerator.cpp
index 462cca8..41446e3 100644
--- a/src/runtimerender/Qt3DSRenderDefaultMaterialShaderGenerator.cpp
+++ b/src/runtimerender/Qt3DSRenderDefaultMaterialShaderGenerator.cpp
@@ -1038,7 +1038,7 @@ struct SShaderGenerator : public IDefaultMaterialShaderGenerator
// generated.
// we rely on the linker to strip out what isn't necessary instead of explicitly stripping
// it for code simplicity.
- if (hasImage && hasLighting && hasLightmaps) {
+ if (hasImage || hasLighting || hasLightmaps) {
fragmentShader.Append(" vec3 uTransform;");
fragmentShader.Append(" vec3 vTransform;");
}