Debian Codegraph @

tests/manual/shadow-map-qml/shaders/rhi/shadowmap.vert

raw
1 // Copyright (C) 2020 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #version 450
5
6 layout(location = 0) in vec3 vertexPosition;
7
8 layout(std140, binding = 1) uniform qt3d_command_uniforms {
9 mat4 modelMatrix;
10 mat4 inverseModelMatrix;
11 mat4 modelView;
12 mat3 modelNormalMatrix;
13 mat4 inverseModelViewMatrix;
14 mat4 mvp;
15 mat4 inverseModelViewProjectionMatrix;
16 mat3 modelViewNormal;
17 };
18
19 void main()
20 {
21 gl_Position = mvp * vec4(vertexPosition, 1.0);
22 }