aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.frag
blob: 80af175c856488d1018f377695022b0cf3ff1b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
uniform sampler2D sampler;

varying vec2 texCoord;
varying vec4 color;

void main(){
    vec4 pixTex = texture2D(sampler, vec2(texCoord.x, 1-texCoord.y));
    if(pixTex.a <= .1)
        discard;
    gl_FragColor = pixTex * color;
}