Moved uniform setting code to ShaderProgram class