Ok cool, I would like to try the shader implementaion, would I need a Vertex shader and a Fragment shader? I tried implementing the shader and I'm just getting a white screen or artifacts, and I'm using just a fragment shader.
uniform float threshold;
void main()
{
vec4 pixel = gl_Color;
if (pixel.a >= threshold){
pixel.a = 0.5f;
}
else{
discard;
}
gl_FragColor = pixel;
}