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