summaryrefslogtreecommitdiffstats
path: root/src/imports/particles/resources/ctfragment.shader
blob: bf538e304608b73af02b7508a5c92936046342bf (plain)
1
2
3
4
5
6
7
8
9
10
uniform sampler2D texture;
uniform sampler2D colortable;

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));
}