summaryrefslogtreecommitdiffstats
path: root/src/compositor/shaders/surface_oes_external.frag
blob: 3064bf7b1ace1663d825d59ef7e67bb2cd75bc58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

// This shader stump cannot be precompiled and is compiled at run-time.
// Appropriate target preamble added when it is loaded.

varying vec2 v_texcoord;
struct buf {
    mat4 qt_Matrix;
    float qt_Opacity;
};
uniform buf ubuf;
uniform samplerExternalOES tex0;

void main()
{
    gl_FragColor = ubuf.qt_Opacity * texture2D(tex0, v_texcoord);
}