aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/new.frag
blob: 3537e265045bd024d77e6831dd9dbdea5ec6562d (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
	if (pixelColor.w != 1.0f)
		discard;
	gl_FragColor = pixelColor * color;
}