aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/defaultshaders/ultrafragment.shader
blob: 0627d0f1e8324d837bc022e941866acb33a43c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
uniform sampler2D texture;
uniform sampler2D colortable;
uniform sampler2D opacitytable;

varying highp vec2 fTexA;
varying highp vec2 fTexB;
varying lowp float progress;
varying lowp vec4 fColor;
varying lowp float tt;

void main() {
    gl_FragColor = mix(texture2D(texture, fTexA), texture2D(texture, fTexB), progress)
            * fColor
            * texture2D(colortable, vec2(tt, 0.5))
            *( texture2D(opacitytable, vec2(tt, 0.5)).w);
}