Hi, I'm trying to implement a bloom effect using shaders on sfml2 but unfortunately, I'm a complete newbie to GLSL and I'm having a lot of trouble figuring out why it's not working at all. I tried to use the shaders posted
here by another user and passed in the variables the horizontal and vertical blur shaders required but all that resulted is my sprite becoming invisible. I tried just applying only the horizontal blur and passed in this with the same result (sprite disappears).
blurH.SetParameter("fadedelta", 0.5f);
blurH.SetParameter("img", sf::Shader::CurrentTexture);
blurH.SetParameter("width", 1600.0f);
blurH.SetParameter("g", 1.5f);
renderWindow.Draw(outline, blurH);
I don't see any GLSL errors in the console so I have no clue what I'm doing wrong. I've been stuck for several days now and it's just so frustrating because I feel like I can't move on to other parts of my game until I can get this working. Would someone be able to share a bit of insight on implementing this or perhaps some working example code?