{"action":"created","issue":{"url":"https://api.github.com/repos/stackgl/shader-school/issues/132","labels_url":"https://api.github.com/repos/stackgl/shader-school/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/stackgl/shader-school/issues/132/comments","events_url":"https://api.github.com/repos/stackgl/shader-school/issues/132/events","html_url":"https://github.com/stackgl/shader-school/issues/132","id":88655531,"number":132,"title":"Doesn't work: \"mat4 is undefined\" (FF) / \"Cannot read property 'perspective' of undefined\" (Chromium)","user":{"login":"zvyn","id":1493900,"avatar_url":"https://avatars.githubusercontent.com/u/1493900?v=3","gravatar_id":"","url":"https://api.github.com/users/zvyn","html_url":"https://github.com/zvyn","followers_url":"https://api.github.com/users/zvyn/followers","following_url":"https://api.github.com/users/zvyn/following{/other_user}","gists_url":"https://api.github.com/users/zvyn/gists{/gist_id}","starred_url":"https://api.github.com/users/zvyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zvyn/subscriptions","organizations_url":"https://api.github.com/users/zvyn/orgs","repos_url":"https://api.github.com/users/zvyn/repos","events_url":"https://api.github.com/users/zvyn/events{/privacy}","received_events_url":"https://api.github.com/users/zvyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-16T08:25:33Z","updated_at":"2015-07-07T17:04:53Z","closed_at":null,"body":"After installing shader-school using npm (see below) I get errors in Firefox and Chromium:\r\nFirefox (version 38.0.5) tells me that \"mat4 is undifined\" while Chromium (version 43.0.2357.125) \"Cannot read property 'perspective' of undefined\".\r\nThe errors appear in a red rectangle on the right bottom as soon as one of the lessons is loaded (e.g. http://localhost:12492/intro-0).\r\nI only see a black screen and the introduction (as soon as I click the button in the top left corner) plus a folder and a home button. Solving an exercise and clicking verify does not work (I'm pretty confident I solved the first one right).\r\nThe output after a request using Firefox:\r\n```\r\n200    2ms       282B  /\r\n200 3651ms     8.18MB  /index.js ➞ /home/milan/Code/shader-school/node_modules/shader-school/node_modules/browserify ./index.js -d -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/brfs/index.js -t [ /home/milan/Code/shader-school/node_modules/shader-school/node_modules/envify/index.js --dirname intro-0 --file_hello_glsl /home/milan/Code/shader-school/00-intro-0/hello.glsl ] -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/glslify-live/transform.js -t /home/milan/Code/shader-school/node_modules/shader-school/node_modules/glslify/index.js\r\n```\r\n\r\nI istalled shader-school using the following command sequence: `cd */Code/; npm install -g shader-school --prefix shader-school; mv shader-school/lib/ shader-school/; ln -s shader-school/node_modules/shader-school/index.js .local/bin/`"},"comment":{"url":"https://api.github.com/repos/stackgl/shader-school/issues/comments/119269563","html_url":"https://github.com/stackgl/shader-school/issues/132#issuecomment-119269563","issue_url":"https://api.github.com/repos/stackgl/shader-school/issues/132","id":119269563,"user":{"login":"nkint","id":609314,"avatar_url":"https://avatars.githubusercontent.com/u/609314?v=3","gravatar_id":"","url":"https://api.github.com/users/nkint","html_url":"https://github.com/nkint","followers_url":"https://api.github.com/users/nkint/followers","following_url":"https://api.github.com/users/nkint/following{/other_user}","gists_url":"https://api.github.com/users/nkint/gists{/gist_id}","starred_url":"https://api.github.com/users/nkint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkint/subscriptions","organizations_url":"https://api.github.com/users/nkint/orgs","repos_url":"https://api.github.com/users/nkint/repos","events_url":"https://api.github.com/users/nkint/events{/privacy}","received_events_url":"https://api.github.com/users/nkint/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T17:04:53Z","updated_at":"2015-07-07T17:04:53Z","body":"I have reinstalled everything and now it works ok"}}