title: How to define constant array in GLSL (OpenGL ES 2.0)?
body: <p>I just want to store an array of weights that needs to every fragment calculation.</p>
  
  <p>This:</p>
  
  <pre><code>float weights[5] = float[5](3.4, 4.2, 5.0, 5.2, 1.1);
  </code></pre>
  
  <p>Just throws this:</p>
  
  <pre><code>ERROR: 0:30: ']' : syntax error syntax error
  ERROR: 0:30: ';' : syntax error syntax error
  </code></pre>