Hola, was just a little confused about shaders and was hoping that maybe I could get some things cleared up. So right now I have a simple 2d game where I draw everything to a RenderTexture, display it and then display the RenderWindow with a shader parameter. (Example sorta below)
Not for compiling just for visualization
window.create(sf::VideoMode(320, 240, 32), "Example"); //RenderWindow
screen.create(window.getSize().x,window.getSize().y); //RenderTexture
effects.setParameter("color", .1f,.9f,.5f); //change the effect of the shader?
shaderstate.shader = &effects; //Applying shader to a RenderState
//Loop//
window.clear(gray);
screen.clear(gray);
//draw some stuff to screen rendertexture
screen.display();
window.draw(sf::Sprite(screen.getTexture()),shaderstate);
window.display();
//End Loop//
So everything runs fine but it seem the game isn't changed at all. In the many examples I have seen people load a .frag shader and set parameters to that. I'm wondering if there is a simple way to create a "clean slate" shader and just use the params you set to change the window? perhaps I'm missing the point of shaders or something but all I want to do is be able to apply things like a tint, some exposure, etc. Any help you can give is much appreciated.
-Sam