{"action":"created","comment":{"url":"https://api.github.com/repos/ICShapy/shapy/pulls/comments/30884465","id":30884465,"diff_hunk":"@@ -124,4 +126,15 @@ shapy.editor.Renderer.prototype.render = function(vp) {\n   this.shColour_.uniform4fv('u_vp', vp.camera.vp);\n \n   this.msGround_.render(this.shColour_);\n+ \n+  // The viewport of the cube is always rectangular in the top corner\n+  var cubeVPSize = (vp.rect.w < vp.rect.h ? vp.rect.w : vp.rect.h) / 4;","path":"client/js/editor/renderer.js","position":15,"original_position":15,"commit_id":"48c556a53212ae5e0c142476416ded7213a8c332","original_commit_id":"48c556a53212ae5e0c142476416ded7213a8c332","user":{"login":"nandor","id":961615,"avatar_url":"https://avatars.githubusercontent.com/u/961615?v=3","gravatar_id":"","url":"https://api.github.com/users/nandor","html_url":"https://github.com/nandor","followers_url":"https://api.github.com/users/nandor/followers","following_url":"https://api.github.com/users/nandor/following{/other_user}","gists_url":"https://api.github.com/users/nandor/gists{/gist_id}","starred_url":"https://api.github.com/users/nandor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandor/subscriptions","organizations_url":"https://api.github.com/users/nandor/orgs","repos_url":"https://api.github.com/users/nandor/repos","events_url":"https://api.github.com/users/nandor/events{/privacy}","received_events_url":"https://api.github.com/users/nandor/received_events","type":"User","site_admin":false},"body":"Don't forget to clear the depth buffer.","created_at":"2015-05-22T10:24:34Z","updated_at":"2015-05-22T10:24:34Z","html_url":"https://github.com/ICShapy/shapy/pull/5#discussion_r30884465","pull_request_url":"https://api.github.com/repos/ICShapy/shapy/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/comments/30884465"},"html":{"href":"https://github.com/ICShapy/shapy/pull/5#discussion_r30884465"},"pull_request":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ICShapy/shapy/pulls/5","id":36017924,"html_url":"https://github.com/ICShapy/shapy/pull/5","diff_url":"https://github.com/ICShapy/shapy/pull/5.diff","patch_url":"https://github.com/ICShapy/shapy/pull/5.patch","issue_url":"https://api.github.com/repos/ICShapy/shapy/issues/5","number":5,"state":"open","locked":false,"title":"Camera","user":{"login":"ir413","id":6415258,"avatar_url":"https://avatars.githubusercontent.com/u/6415258?v=3","gravatar_id":"","url":"https://api.github.com/users/ir413","html_url":"https://github.com/ir413","followers_url":"https://api.github.com/users/ir413/followers","following_url":"https://api.github.com/users/ir413/following{/other_user}","gists_url":"https://api.github.com/users/ir413/gists{/gist_id}","starred_url":"https://api.github.com/users/ir413/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ir413/subscriptions","organizations_url":"https://api.github.com/users/ir413/orgs","repos_url":"https://api.github.com/users/ir413/repos","events_url":"https://api.github.com/users/ir413/events{/privacy}","received_events_url":"https://api.github.com/users/ir413/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-22T10:21:07Z","updated_at":"2015-05-22T10:24:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"015585c5314eef1e6a3abc1df0a19950add1f161","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ICShapy/shapy/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ICShapy/shapy/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ICShapy/shapy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ICShapy/shapy/issues/5/comments","statuses_url":"https://api.github.com/repos/ICShapy/shapy/statuses/48c556a53212ae5e0c142476416ded7213a8c332","head":{"label":"ICShapy:camera","ref":"camera","sha":"48c556a53212ae5e0c142476416ded7213a8c332","user":{"login":"ICShapy","id":11694811,"avatar_url":"https://avatars.githubusercontent.com/u/11694811?v=3","gravatar_id":"","url":"https://api.github.com/users/ICShapy","html_url":"https://github.com/ICShapy","followers_url":"https://api.github.com/users/ICShapy/followers","following_url":"https://api.github.com/users/ICShapy/following{/other_user}","gists_url":"https://api.github.com/users/ICShapy/gists{/gist_id}","starred_url":"https://api.github.com/users/ICShapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICShapy/subscriptions","organizations_url":"https://api.github.com/users/ICShapy/orgs","repos_url":"https://api.github.com/users/ICShapy/repos","events_url":"https://api.github.com/users/ICShapy/events{/privacy}","received_events_url":"https://api.github.com/users/ICShapy/received_events","type":"Organization","site_admin":false},"repo":{"id":33034495,"name":"shapy","full_name":"ICShapy/shapy","owner":{"login":"ICShapy","id":11694811,"avatar_url":"https://avatars.githubusercontent.com/u/11694811?v=3","gravatar_id":"","url":"https://api.github.com/users/ICShapy","html_url":"https://github.com/ICShapy","followers_url":"https://api.github.com/users/ICShapy/followers","following_url":"https://api.github.com/users/ICShapy/following{/other_user}","gists_url":"https://api.github.com/users/ICShapy/gists{/gist_id}","starred_url":"https://api.github.com/users/ICShapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICShapy/subscriptions","organizations_url":"https://api.github.com/users/ICShapy/orgs","repos_url":"https://api.github.com/users/ICShapy/repos","events_url":"https://api.github.com/users/ICShapy/events{/privacy}","received_events_url":"https://api.github.com/users/ICShapy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ICShapy/shapy","description":"Collaborative 3D modelling tool","fork":false,"url":"https://api.github.com/repos/ICShapy/shapy","forks_url":"https://api.github.com/repos/ICShapy/shapy/forks","keys_url":"https://api.github.com/repos/ICShapy/shapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ICShapy/shapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ICShapy/shapy/teams","hooks_url":"https://api.github.com/repos/ICShapy/shapy/hooks","issue_events_url":"https://api.github.com/repos/ICShapy/shapy/issues/events{/number}","events_url":"https://api.github.com/repos/ICShapy/shapy/events","assignees_url":"https://api.github.com/repos/ICShapy/shapy/assignees{/user}","branches_url":"https://api.github.com/repos/ICShapy/shapy/branches{/branch}","tags_url":"https://api.github.com/repos/ICShapy/shapy/tags","blobs_url":"https://api.github.com/repos/ICShapy/shapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ICShapy/shapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ICShapy/shapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ICShapy/shapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ICShapy/shapy/statuses/{sha}","languages_url":"https://api.github.com/repos/ICShapy/shapy/languages","stargazers_url":"https://api.github.com/repos/ICShapy/shapy/stargazers","contributors_url":"https://api.github.com/repos/ICShapy/shapy/contributors","subscribers_url":"https://api.github.com/repos/ICShapy/shapy/subscribers","subscription_url":"https://api.github.com/repos/ICShapy/shapy/subscription","commits_url":"https://api.github.com/repos/ICShapy/shapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ICShapy/shapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ICShapy/shapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ICShapy/shapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ICShapy/shapy/contents/{+path}","compare_url":"https://api.github.com/repos/ICShapy/shapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ICShapy/shapy/merges","archive_url":"https://api.github.com/repos/ICShapy/shapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ICShapy/shapy/downloads","issues_url":"https://api.github.com/repos/ICShapy/shapy/issues{/number}","pulls_url":"https://api.github.com/repos/ICShapy/shapy/pulls{/number}","milestones_url":"https://api.github.com/repos/ICShapy/shapy/milestones{/number}","notifications_url":"https://api.github.com/repos/ICShapy/shapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ICShapy/shapy/labels{/name}","releases_url":"https://api.github.com/repos/ICShapy/shapy/releases{/id}","created_at":"2015-03-28T13:33:07Z","updated_at":"2015-05-02T12:09:53Z","pushed_at":"2015-05-22T10:21:07Z","git_url":"git://github.com/ICShapy/shapy.git","ssh_url":"git@github.com:ICShapy/shapy.git","clone_url":"https://github.com/ICShapy/shapy.git","svn_url":"https://github.com/ICShapy/shapy","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"ICShapy:master","ref":"master","sha":"aed3885917ac779e0e3566094137573f4acbb0eb","user":{"login":"ICShapy","id":11694811,"avatar_url":"https://avatars.githubusercontent.com/u/11694811?v=3","gravatar_id":"","url":"https://api.github.com/users/ICShapy","html_url":"https://github.com/ICShapy","followers_url":"https://api.github.com/users/ICShapy/followers","following_url":"https://api.github.com/users/ICShapy/following{/other_user}","gists_url":"https://api.github.com/users/ICShapy/gists{/gist_id}","starred_url":"https://api.github.com/users/ICShapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICShapy/subscriptions","organizations_url":"https://api.github.com/users/ICShapy/orgs","repos_url":"https://api.github.com/users/ICShapy/repos","events_url":"https://api.github.com/users/ICShapy/events{/privacy}","received_events_url":"https://api.github.com/users/ICShapy/received_events","type":"Organization","site_admin":false},"repo":{"id":33034495,"name":"shapy","full_name":"ICShapy/shapy","owner":{"login":"ICShapy","id":11694811,"avatar_url":"https://avatars.githubusercontent.com/u/11694811?v=3","gravatar_id":"","url":"https://api.github.com/users/ICShapy","html_url":"https://github.com/ICShapy","followers_url":"https://api.github.com/users/ICShapy/followers","following_url":"https://api.github.com/users/ICShapy/following{/other_user}","gists_url":"https://api.github.com/users/ICShapy/gists{/gist_id}","starred_url":"https://api.github.com/users/ICShapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ICShapy/subscriptions","organizations_url":"https://api.github.com/users/ICShapy/orgs","repos_url":"https://api.github.com/users/ICShapy/repos","events_url":"https://api.github.com/users/ICShapy/events{/privacy}","received_events_url":"https://api.github.com/users/ICShapy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ICShapy/shapy","description":"Collaborative 3D modelling tool","fork":false,"url":"https://api.github.com/repos/ICShapy/shapy","forks_url":"https://api.github.com/repos/ICShapy/shapy/forks","keys_url":"https://api.github.com/repos/ICShapy/shapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ICShapy/shapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ICShapy/shapy/teams","hooks_url":"https://api.github.com/repos/ICShapy/shapy/hooks","issue_events_url":"https://api.github.com/repos/ICShapy/shapy/issues/events{/number}","events_url":"https://api.github.com/repos/ICShapy/shapy/events","assignees_url":"https://api.github.com/repos/ICShapy/shapy/assignees{/user}","branches_url":"https://api.github.com/repos/ICShapy/shapy/branches{/branch}","tags_url":"https://api.github.com/repos/ICShapy/shapy/tags","blobs_url":"https://api.github.com/repos/ICShapy/shapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ICShapy/shapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ICShapy/shapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ICShapy/shapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ICShapy/shapy/statuses/{sha}","languages_url":"https://api.github.com/repos/ICShapy/shapy/languages","stargazers_url":"https://api.github.com/repos/ICShapy/shapy/stargazers","contributors_url":"https://api.github.com/repos/ICShapy/shapy/contributors","subscribers_url":"https://api.github.com/repos/ICShapy/shapy/subscribers","subscription_url":"https://api.github.com/repos/ICShapy/shapy/subscription","commits_url":"https://api.github.com/repos/ICShapy/shapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ICShapy/shapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ICShapy/shapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ICShapy/shapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ICShapy/shapy/contents/{+path}","compare_url":"https://api.github.com/repos/ICShapy/shapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ICShapy/shapy/merges","archive_url":"https://api.github.com/repos/ICShapy/shapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ICShapy/shapy/downloads","issues_url":"https://api.github.com/repos/ICShapy/shapy/issues{/number}","pulls_url":"https://api.github.com/repos/ICShapy/shapy/pulls{/number}","milestones_url":"https://api.github.com/repos/ICShapy/shapy/milestones{/number}","notifications_url":"https://api.github.com/repos/ICShapy/shapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ICShapy/shapy/labels{/name}","releases_url":"https://api.github.com/repos/ICShapy/shapy/releases{/id}","created_at":"2015-03-28T13:33:07Z","updated_at":"2015-05-02T12:09:53Z","pushed_at":"2015-05-22T10:21:07Z","git_url":"git://github.com/ICShapy/shapy.git","ssh_url":"git@github.com:ICShapy/shapy.git","clone_url":"https://github.com/ICShapy/shapy.git","svn_url":"https://github.com/ICShapy/shapy","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/5"},"html":{"href":"https://github.com/ICShapy/shapy/pull/5"},"issue":{"href":"https://api.github.com/repos/ICShapy/shapy/issues/5"},"comments":{"href":"https://api.github.com/repos/ICShapy/shapy/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ICShapy/shapy/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ICShapy/shapy/statuses/48c556a53212ae5e0c142476416ded7213a8c332"}}}}