I have an effect with the following lights data:
I set the first light's params like this:
I even validate it later via debug by doing GetValue(), and value is OK.
However, no matter what I do it seems like the shader is permanently stuck with the first value I ever set! If I change position and even do GetValue() to validate it, the shader itself still behaves like the first position I put is the position it knows. I validated this by outputting position as color.
The only way to change the value, once set, is to close the program and run it again. Via multiple runs I could validate that my shader works fine, but its just the SetValue() not working, like MonoGame has some internal cache and it doesn't really load the new data to the shader.
Anyone knows what the heck is going on? Can anyone confirm that setting elements really work?