summaryrefslogtreecommitdiffstats
path: root/tests/manual/planets-qml/shaders/es2/sun.vert
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/planets-qml/shaders/es2/sun.vert')
-rw-r--r--tests/manual/planets-qml/shaders/es2/sun.vert21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/manual/planets-qml/shaders/es2/sun.vert b/tests/manual/planets-qml/shaders/es2/sun.vert
new file mode 100644
index 000000000..f15074d1f
--- /dev/null
+++ b/tests/manual/planets-qml/shaders/es2/sun.vert
@@ -0,0 +1,21 @@
+// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+attribute vec3 vertexPosition;
+attribute vec2 vertexTexCoord;
+
+varying vec3 position;
+varying vec2 texCoord;
+
+uniform mat4 modelView;
+uniform mat4 mvp;
+
+uniform float texCoordScale;
+
+void main()
+{
+ texCoord = vertexTexCoord * texCoordScale;
+ position = vec3(modelView * vec4(vertexPosition, 1.0));
+ gl_Position = mvp * vec4(vertexPosition, 1.0);
+}