aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/sprite_core.frag
blob: c1087a8754b0e69b27eeec5bdb32fd27ae994292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 150 core

in vec4 fTexS;
in float progress;

out vec4 fragColor;

uniform sampler2D _qt_texture;
uniform float qt_Opacity;

void main()
{
    fragColor = mix(texture(_qt_texture, fTexS.xy),
                    texture(_qt_texture, fTexS.zw),
                    progress) * qt_Opacity;
}