aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/shaders_ng/imageparticle.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/particles/shaders_ng/imageparticle.frag')
-rw-r--r--src/particles/shaders_ng/imageparticle.frag7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/particles/shaders_ng/imageparticle.frag b/src/particles/shaders_ng/imageparticle.frag
index 90b79e6ea9..2134f54e1b 100644
--- a/src/particles/shaders_ng/imageparticle.frag
+++ b/src/particles/shaders_ng/imageparticle.frag
@@ -1,3 +1,6 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
#version 440
#if defined(TABLE)
@@ -19,7 +22,11 @@ layout(location = 2) in float fFade;
layout(location = 0) out vec4 fragColor;
layout(std140, binding = 0) uniform buf {
+#if QSHADER_VIEW_COUNT >= 2
+ mat4 matrix[QSHADER_VIEW_COUNT];
+#else
mat4 matrix;
+#endif
float opacity;
float entry;
float timestamp;