{"action":"closed","issue":{"url":"https://api.github.com/repos/laurentlb/Shader_Minifier/issues/13","repository_url":"https://api.github.com/repos/laurentlb/Shader_Minifier","labels_url":"https://api.github.com/repos/laurentlb/Shader_Minifier/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/laurentlb/Shader_Minifier/issues/13/comments","events_url":"https://api.github.com/repos/laurentlb/Shader_Minifier/issues/13/events","html_url":"https://github.com/laurentlb/Shader_Minifier/issues/13","id":292222218,"node_id":"MDU6SXNzdWUyOTIyMjIyMTg=","number":13,"title":"Arrays not supported","user":{"login":"stfx","id":341158,"node_id":"MDQ6VXNlcjM0MTE1OA==","avatar_url":"https://avatars0.githubusercontent.com/u/341158?v=4","gravatar_id":"","url":"https://api.github.com/users/stfx","html_url":"https://github.com/stfx","followers_url":"https://api.github.com/users/stfx/followers","following_url":"https://api.github.com/users/stfx/following{/other_user}","gists_url":"https://api.github.com/users/stfx/gists{/gist_id}","starred_url":"https://api.github.com/users/stfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stfx/subscriptions","organizations_url":"https://api.github.com/users/stfx/orgs","repos_url":"https://api.github.com/users/stfx/repos","events_url":"https://api.github.com/users/stfx/events{/privacy}","received_events_url":"https://api.github.com/users/stfx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-28T17:31:19Z","updated_at":"2018-06-03T11:05:50Z","closed_at":"2018-06-03T11:05:50Z","author_association":"NONE","body":"This tool is really cool however the following throws an exception upon getting to the first bracket `[`:\r\n```glsl\r\nconst vec2 samples[10] = vec2[](\r\nvec2(-0.5798373, -0.6431335),\r\nvec2(-0.905221, -0.124952),\r\nvec2(-0.2680226, 0.254136),\r\nvec2(-0.01519084, -0.5156112),\r\nvec2(-0.7712643, 0.4174358),\r\nvec2(0.4850016, 0.1596012),\r\nvec2(0.6443742, -0.5418636),\r\nvec2(-0.3830979, 0.8917095),\r\nvec2(0.4932076, 0.7231117),\r\nvec2(0.2750384, -0.9251713)\r\n);\r\n```\r\n\r\nThe above code in particular is used to iterate over samples in a poisson disk which is a common way to smoothly filter shadow maps. Example: http://www.sunandblackcat.com/tipFullView.php?l=eng&topicid=35&topic=Shadow-Mapping-Poisson-VSM-ESM-PCF\r\n\r\nThe only workaround I have found is to remove the array by manually unrolling the loop where those values are used which is non-ideal for performance and filesize especially for more than a few samples."}}
{"actor":{"display_login":"laurentlb"}}