Debian Codegraph @

tests/manual/planets-qml/shaders/es2/sun.vert

raw
1 // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2 // Copyright (C) 2017 The Qt Company Ltd.
3 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
5 attribute vec3 vertexPosition;
6 attribute vec2 vertexTexCoord;
7
8 varying vec3 position;
9 varying vec2 texCoord;
10
11 uniform mat4 modelView;
12 uniform mat4 mvp;
13
14 uniform float texCoordScale;
15
16 void main()
17 {
18 texCoord = vertexTexCoord * texCoordScale;
19 position = vec3(modelView * vec4(vertexPosition, 1.0));
20 gl_Position = mvp * vec4(vertexPosition, 1.0);
21 }