1#version 400 2 3uniform sampler2D tex; 4in vec2 coord; 5 6void main (void) 7{ 8 vec4 v = texture(tex, coord); 9 10 if (v == vec4(0.1,0.2,0.3,0.4)) 11 discard; 12 13 gl_FragColor = v; 14} 15