summaryrefslogtreecommitdiffstats
path: root/tests/manual/planets-qml/shaders/rhi/shadowmap.vert
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/planets-qml/shaders/rhi/shadowmap.vert')
-rw-r--r--tests/manual/planets-qml/shaders/rhi/shadowmap.vert21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/manual/planets-qml/shaders/rhi/shadowmap.vert b/tests/manual/planets-qml/shaders/rhi/shadowmap.vert
new file mode 100644
index 000000000..c5c3a9da1
--- /dev/null
+++ b/tests/manual/planets-qml/shaders/rhi/shadowmap.vert
@@ -0,0 +1,21 @@
+// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#version 450 core
+
+layout(location=0) in vec3 vertexPosition;
+
+layout(std140, binding = 1) uniform qt3d_command_uniforms {
+ mat4 modelMatrix;
+ mat4 inverseModelMatrix;
+ mat4 modelViewMatrix;
+ mat3 modelNormalMatrix;
+ mat4 inverseModelViewMatrix;
+ mat4 modelViewProjection;
+ mat4 inverseModelViewProjectionMatrix;
+};
+
+void main()
+{
+ gl_Position = modelViewProjection * vec4(vertexPosition, 1.0);
+}