title: How to set a time uniform in webgl
body: <p>I am new to webgl. I am trying to set a time uniform, so I can change the output of my fragment shader as time passes. I thought this would be fairly simple to implement but I am struggling. I am aware that these two methods are probably involved:</p>
  
  <ul>
  <li><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation</a></p></li>
  <li><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform</a></p></li>
  </ul>
  
  <p>Is some kind of rendering loop required? </p>
  
  <p>Any help here would be really appreciated, thanks.</p>