aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/particles/resources/superfragment.shader
blob: a17f5841ca45ec7e9c201b9d4b56ce19cac43834 (plain)
1
2
3
4
5
6
7
8
9
10
11
uniform sampler2D texture;
uniform sampler2D colortable;
uniform sampler2D opacitytable;

varying highp vec2 fTex;
varying lowp vec4 fColor;
varying lowp float tt;

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