{"action":"created","issue":{"url":"https://api.github.com/repos/vovoid/vsxu/issues/173","repository_url":"https://api.github.com/repos/vovoid/vsxu","labels_url":"https://api.github.com/repos/vovoid/vsxu/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/vovoid/vsxu/issues/173/comments","events_url":"https://api.github.com/repos/vovoid/vsxu/issues/173/events","html_url":"https://github.com/vovoid/vsxu/issues/173","id":150220803,"number":173,"title":"GLSL out of date or incomplete","user":{"login":"SoraHjort","id":18604504,"avatar_url":"https://avatars.githubusercontent.com/u/18604504?v=3","gravatar_id":"","url":"https://api.github.com/users/SoraHjort","html_url":"https://github.com/SoraHjort","followers_url":"https://api.github.com/users/SoraHjort/followers","following_url":"https://api.github.com/users/SoraHjort/following{/other_user}","gists_url":"https://api.github.com/users/SoraHjort/gists{/gist_id}","starred_url":"https://api.github.com/users/SoraHjort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoraHjort/subscriptions","organizations_url":"https://api.github.com/users/SoraHjort/orgs","repos_url":"https://api.github.com/users/SoraHjort/repos","events_url":"https://api.github.com/users/SoraHjort/events{/privacy}","received_events_url":"https://api.github.com/users/SoraHjort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T23:42:06Z","updated_at":"2016-04-22T18:42:13Z","closed_at":null,"body":"Just about everytime I load a GLSL shader into the GLSL loader, I get errors such as \"Undefined Variable\" for tags such as iResolution, iGlobalTime, and so on. Somethings like iMouse being excluded can make sense due to the application of VSXu. Then again, someone could use iMouse to setup a visual to shift between multiple sub-visuals by the position of the mouse. "},"comment":{"url":"https://api.github.com/repos/vovoid/vsxu/issues/comments/213548703","html_url":"https://github.com/vovoid/vsxu/issues/173#issuecomment-213548703","issue_url":"https://api.github.com/repos/vovoid/vsxu/issues/173","id":213548703,"user":{"login":"jaw","id":1024487,"avatar_url":"https://avatars.githubusercontent.com/u/1024487?v=3","gravatar_id":"","url":"https://api.github.com/users/jaw","html_url":"https://github.com/jaw","followers_url":"https://api.github.com/users/jaw/followers","following_url":"https://api.github.com/users/jaw/following{/other_user}","gists_url":"https://api.github.com/users/jaw/gists{/gist_id}","starred_url":"https://api.github.com/users/jaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaw/subscriptions","organizations_url":"https://api.github.com/users/jaw/orgs","repos_url":"https://api.github.com/users/jaw/repos","events_url":"https://api.github.com/users/jaw/events{/privacy}","received_events_url":"https://api.github.com/users/jaw/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T18:42:13Z","updated_at":"2016-04-22T18:42:13Z","body":"First, with a bug report like this - a source example might help... \r\n\r\nOnly reason for undefined variables in GLSL is if you do not declare them. \r\n\r\nAlso, AFAIK - iResolution, iGlobalTime and iMouse are not part of the GLSL standard and is probably due to you copying shaders from some other program which prepends the source code with these variables and declares them as Uniforms which is what you should be doing. \r\n\r\nWith a float uniform for instance - you can supply your shader with time, or resolution, or anything. \r\n\r\nVSXu declares GLSL Uniforms as regular module parameters so you can hook them to whatever you want, thus there is no need for any special vendor-specific variables which I'm guessing is what is causing issues for you.\r\n\r\nBTW mouse, keyboard and gamepad support is present in our development branch which will be released later this year."}}