Newer
Older
pixi.js / src / mesh / webgl / mesh.frag
@Mat Groves Mat Groves on 1 Jan 2017 203 bytes state first pass
varying vec2 vTextureCoord;
uniform float alpha;
uniform vec3 tint;

uniform sampler2D uSampler2;

void main(void)
{
    gl_FragColor = texture2D(uSampler2, vTextureCoord) * vec4(tint * alpha, alpha);
}