In my project, I was trying to use Both Vertex shader and Fragment shader, so in sf::Shader shader and i load 2 file, fragment and vertex like this
shader.loadFromFile("some_directory_to_fragment", sf::Shader::Fragment);
shader.loadFromFile("some_directory_to_vertex", sf::Shader::Vertex);
its was okay, but when i want set uniform like this:
shader.setUniform("radius", 30);
Its only find in vertex file and create error radius not found while the radius is in fragment shader, i could like delete the vertex line but i cannot do that since i need modify vertex, so How i fix this?, also i new to sfml, sorry if the help little bit `weird`