summaryrefslogtreecommitdiff
path: root/src/libs/tracing/qml/notes_qt6.vert
blob: f9e8a74fb4a0ce6451ec36c870bf656716574db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#version 440

layout (location = 0) in vec4 vertexCoord;
layout (location = 1) in float distanceFromTop;

layout (std140, binding = 0) uniform Block {
    mat4 matrix;
    vec4 notesColor;
} block;

layout (location = 0) out vec4 color;
layout (location = 1) out float d;

void main()
{
    gl_Position = block.matrix * vertexCoord;
    gl_Position.z -= 0.1;
    gl_Position.w = 1.0;
    color = block.notesColor;
    d = distanceFromTop;
}