blob: 0310fdad616b204b17c122ba04de4e4c54746552 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#version 440
layout (location = 0) in vec4 color;
layout (location = 1) in float d;
layout (location = 0) out vec4 fragColor;
void main()
{
fragColor = color * float(d < (2.0 / 3.0) || d > (5.0 / 6.0));
}
|