aboutsummaryrefslogtreecommitdiffstats
path: root/Shaders/ui.frag
blob: 737344e12975e21bc816cbc813e2992afffb09ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
uniform sampler2D sampler;

varying vec2 texCoord;
varying vec4 color;

void main(){
    vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y));
    //TODO allow antialiasing
	//if (pixelColor.w != 1.0f)
	//	discard;
	gl_FragColor = pixelColor * color;
}