title: passing uniform float into vertex shader opengl
body: <p>I am having a problem passing a float from c++ by using uniform in to my vertex shader. This float is just meant to keep adding to itself.</p>
  
  <p>Within my header i have</p>
  
  <pre><code>float pauto;
  void pautoupdate(int program);
  </code></pre>
  
  <p>Now within my cpp</p>
  
  <pre><code>void World::pautoupdate(int program)
  {
      pauto += 0.1f;
  
      glUniform1f(glGetUniformLocation(program, "pauto"), pauto);
  }
  </code></pre>
  
  <p>Within my vertex shader it is declared as and it is just incrementing the x values</p>
  
  <pre><code>uniform float pauto;
  
  terrx = Position.x;
  terrx += pauto;
  </code></pre>
  
  <p>From here on i am not getting any results from doing this, i am not sure if i am incorrectly pointing to it or something.</p>