I'm making a shader in glsl.heroku.com and when I try to access an array of floats declared like this:
float colors[200];
in this way:
int i=function();
float color=colors[i];
it doesn't compile, a "compiled with errors" error appears. Is this because glsl doesn't allow it or is it a heroku specific problem? In the case it's the former, how can I work around it?