I’ve made an object for my program that will load any aribitrary shaders, look up the uniforms, and then allow a user to input those values, but there are some shaders that don’t work (ie. don’t produce any output), so I’m trying to question all of my choices in the setup…
…basicly, I just want to be reassured that an “index” returned by glGetActiveUniform() can be used reliably as the “location” for glUniform*() calls: I’ve seen some code that uses glGetUniformLocation() paired with each glUniform*() call, which is something I don’t do currently…similarly, does a glUniform*() call need to be made each time the shader is used, even if the uniform value hasn’t changed?