summaryrefslogtreecommitdiffstats
path: root/src/compositor/shaders/surface_oes_external.frag
blob: 1cec856b2e4e6ea71fecf8fe8d0a88d9e8147c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);
}