Warning, /frameworks/kdeclarative/src/qmlcontrols/graphicaleffects/badge.frag is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2023 Mike Noe <noeerover@gmail.com>
0003 *
0004 * SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 #version 440
0008
0009 layout(location = 0) in vec2 qt_TexCoord0;
0010 layout(location = 0) out vec4 fragColor;
0011
0012 layout(std140, binding = 0) uniform buf {
0013 mat4 qt_Matrix;
0014 float qt_Opacity;
0015 } ubuf;
0016
0017 layout(binding = 1) uniform sampler2D source;
0018 layout(binding = 2) uniform sampler2D mask;
0019
0020 void main() {
0021 fragColor = texture(source, qt_TexCoord0) * (1.0 - (texture(mask, qt_TexCoord0).a)) * ubuf.qt_Opacity;
0022 }
0023