title: Variable size array GLSL
body: <p>I am working on creating shaders for an OpenGL/Java engine that I am building.  I have searched for a while, but I cannot find a way to have an array of variable size.  I know that I can create a statically sized one like:</p>
  
  <pre><code>uniform vec3 variable[4];
  </code></pre>
  
  <p>But how would I go about creating an array of size X based on what I load to the shader from the CPU, if this is even possible.</p>
  
  <p>Thanks in advance!</p>