I only found one thread about that, which was made before 2.0, most others were related to rendertexture and display() on it.
Simply drawing a sprite with this shader, while I remove middle line, will flip the output.
uniform sampler2D my_texture;//sf::Shader::CurrentTexture
uniform vec2 my_tex_size;//it's size
void main()
{
vec2 coords=gl_FragCoord.xy/my_tex_size;
coords.y=1.0-coords.y;
gl_FragColor=texture2D(my_texture,coords);
}
Is this expected to happen? I know SFML flips y for itself(right?). So does it mean I need to too to get same output?