Implementation - transparency in OpenGL

In fragment shader:
float limit = 0.6;
if( texture.a < limit) {
  discard;
}