Debian Codegraph @

src/shader/colorfill.frag

raw
1 /*
2 * SPDX-FileCopyrightText: 2025 Muhammet Sadık Uğursoy <[email protected]>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7 #version 440
8 layout(location = 0) in vec2 qt_TexCoord0;
9 layout(location = 0) out vec4 fragColor;
10 layout(std140, binding = 0) uniform buf {
11 mat4 qt_Matrix;
12 vec4 colorSource;
13 float qt_Opacity;
14 };
15 layout(binding = 1) uniform sampler2D maskSource;
16 void main() {
17 fragColor = colorSource * texture(maskSource, qt_TexCoord0).a * qt_Opacity;
18 }