So I am new to Webgl and have been trying to add a transparent background so you can still see the image but also the background. I've included the code I've been working with but everytime i run the code it just posts the image and doesn't change the background. Any tips on what I'm doing wrong would be appreciated.
precision highp float;
// Uniform variables are constant over image
uniform float time;
uniform sampler2D image;
uniform vec2 u_resolution;
uniform vec2 viewport;
void main(void)
{
gl_FragColor = vec4(1.0, 0.0, 0.0, 0.5);
gl_FragColor = texture2D(image, gl_FragCoord.yx / 600.0);
}