| 1 |
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
#version 450 core |
| 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 modelViewMatrix; |
| 12 |
mat3 modelNormalMatrix; |
| 13 |
mat4 inverseModelViewMatrix; |
| 14 |
mat4 modelViewProjection; |
| 15 |
mat4 inverseModelViewProjectionMatrix; |
| 16 |
}; |
| 17 |
|
| 18 |
void main() |
| 19 |
{ |
| 20 |
gl_Position = modelViewProjection * vec4(vertexPosition, 1.0); |
| 21 |
} |