{"action":"opened","issue":{"url":"https://api.github.com/repos/Ahbee/ofxUbo/issues/4","labels_url":"https://api.github.com/repos/Ahbee/ofxUbo/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Ahbee/ofxUbo/issues/4/comments","events_url":"https://api.github.com/repos/Ahbee/ofxUbo/issues/4/events","html_url":"https://github.com/Ahbee/ofxUbo/issues/4","id":116006338,"number":4,"title":"array index has to be constant","user":{"login":"liukinwai","id":5728566,"avatar_url":"https://avatars.githubusercontent.com/u/5728566?v=3","gravatar_id":"","url":"https://api.github.com/users/liukinwai","html_url":"https://github.com/liukinwai","followers_url":"https://api.github.com/users/liukinwai/followers","following_url":"https://api.github.com/users/liukinwai/following{/other_user}","gists_url":"https://api.github.com/users/liukinwai/gists{/gist_id}","starred_url":"https://api.github.com/users/liukinwai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liukinwai/subscriptions","organizations_url":"https://api.github.com/users/liukinwai/orgs","repos_url":"https://api.github.com/users/liukinwai/repos","events_url":"https://api.github.com/users/liukinwai/events{/privacy}","received_events_url":"https://api.github.com/users/liukinwai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T01:34:54Z","updated_at":"2015-11-10T01:34:54Z","closed_at":null,"body":"Hi: Thanks for the addon, it is really useful. I have a question and wonder if you have any idea:\r\n\r\nI used ofxUbo with the following in fragment shader:\r\nuniform LightPlane {\r\n    float   near[NUM_LIGHTS];\r\n    float   far[NUM_LIGHTS];\r\n} Lpl;\r\n\r\nWhen access the uniform with Lpl.near[i], it seems that it does not work, GLSL need the array index to be a constant. Is there any way around it, it is really inconvenient if does not allow variable to use as index.\r\n\r\nThanks!\r\nEric"}}