That problem on Archlinux was weird, should work. Anyway not hard to fix. Will get around to it. Sorry for the delay but it is summer
I am having another problem which I need Laurents help with. Setting parameters on shaders in C++ and examples work just fine but somehow for me in Ruby it doesn't. I only get "Parameter "<name>" not found in shader" though it is clearly there and the names are copy pasted and is 100% correct. I don't do anything funky in the binding I just convert the Ruby string to a C++ string before passing it to SFML. So technically it should work unless I am doing something wrong with the conversion. So I tried forcing the parameter name in the Ruby binding code to something specific to see if it works but it still says it can't find it.
I've tried binding before setting parameters and I've tried moving the parameter set to after something is rendered. But still no prevail. I've searched the forum after similar problems or solutions but found nothing. So wondering if you are aware of any potential problem I can have stumbled upon?
I know the shader compiles and works because I am rendering with it and is seeing the effects from it.
I am trying with a
uniform vec2 uniformTest variable with the
@state.shader.setParameter("uniformTest", SFML::Vector2.new(0, 1)) code in ruby which becomes this :
shader->setParameter( "uniformTest", sf::Vector2f( 0, 1 ) ); for C++ but it don't work.
There is clearly a problem on my end but can't find it =/