aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.frag
blob: c10343350f79d413720df7ee4f89343b002dfed7 (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 == 0.0)
        discard;
    gl_FragColor = pixTex * color;
}