aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/new.frag
blob: 0e4ed054433553512c89beca6f15598ff7f6e6d7 (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;
}