aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/shaders/lineargradient.frag
blob: 7f4a739109ba0d8165b7b08dc0d1aae9069d01b9 (plain)
1
2
3
4
5
6
7
8
9
uniform sampler2D gradTabTexture;
uniform highp float opacity;

varying highp float gradTabIndex;

void main()
{
    gl_FragColor = texture2D(gradTabTexture, vec2(gradTabIndex, 0.5)) * opacity;
}