{"action":"created","comment":{"url":"https://api.github.com/repos/brickify/brickify/pulls/comments/32234653","id":32234653,"diff_hunk":"@@ -0,0 +1,58 @@\n+# mainly inspired from http://theorangeduck.com/page/pure-depth-ssao\n+\n+ShaderPart = require './shaderPart'\n+\n+class SsaoBlurPart extends ShaderPart\n+\tgetVertexVariables: ->\n+\t\treturn ''\n+\n+\tgetVertexPreMain: ->\n+\t\treturn ''\n+\n+\tgetVertexInMain: ->\n+\t\treturn''\n+\n+\tgetFragmentVariables: ->\n+\t\treturn ''\n+\n+\tgetFragmentPreMain: ->\n+\t\treturn '\n+\t\t\tfloat ssaoBlur(vec2 texCoords){\n+\t\t\t\tfloat dX = 1.0 / texWidth;\\n\n+\t\t\t\tfloat dY = 1.0 / texHeight;\\n\n+\t\t\t\tconst int kernelSize = 3;\\n\n+\n+\t\t\t\tfloat value = texture2D(tColor, texCoords).r;\\n\n+\n+\t\t\t\tfor (int x = -kernelSize; x <= kernelSize; x++){\\n\n+\t\t\t\t\tfor (int y = -kernelSize; y <= kernelSize; y++){\\n\n+\t\t\t\t\t\tif (x != 0 && y != 0){\\n\n+\t\t\t\t\t\t\tfloat fx = float(x);\\n\n+\t\t\t\t\t\t\tfloat fy = float(y);\\n\n+\n+\t\t\t\t\t\t\tfloat tx = texCoords.x + fx * dX;\\n\n+\t\t\t\t\t\t\tfloat ty = texCoords.y + fy * dY;\\n\n+\n+\t\t\t\t\t\t\tfloat weight = 1.0 / ((abs(fx) + 0.5) * (abs(fy) + 0.5));\\n\n+\t\t\t\t\t\t\tfloat currentValue = texture2D(tColor, vec2(tx, ty)).r;\\n\n+\t\t\t\t\t\t\tvalue = value * (1.0 - weight) + currentValue * (weight);\\n\n+\t\t\t\t\t\t}\\n\n+\t\t\t\t\t}\\n\n+\t\t\t\t}\\n\n+\n+\t\t\t\treturn value;\\n\n+\t\t\t}\n+\t\t'\n+\n+\tgetFragmentInMain: ->\n+\t\treturn '\n+\t\t\tfloat blur = ssaoBlur(vUv);\n+\t\t\tcol = vec4(0.0);\n+\t\t\tcurrentOpacity = 1.0 - blur;\n+\n+\t\t\t/*col = texture2D(tColor, vUv);","path":"src/client/rendering/shader/ssaoBlurPart.coffee","position":53,"original_position":53,"commit_id":"3ee104cc58291ec53dec01850b3a96b0f6bedb59","original_commit_id":"3ee104cc58291ec53dec01850b3a96b0f6bedb59","user":{"login":"adius","id":969983,"avatar_url":"https://avatars.githubusercontent.com/u/969983?v=3","gravatar_id":"","url":"https://api.github.com/users/adius","html_url":"https://github.com/adius","followers_url":"https://api.github.com/users/adius/followers","following_url":"https://api.github.com/users/adius/following{/other_user}","gists_url":"https://api.github.com/users/adius/gists{/gist_id}","starred_url":"https://api.github.com/users/adius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adius/subscriptions","organizations_url":"https://api.github.com/users/adius/orgs","repos_url":"https://api.github.com/users/adius/repos","events_url":"https://api.github.com/users/adius/events{/privacy}","received_events_url":"https://api.github.com/users/adius/received_events","type":"User","site_admin":false},"body":"Delete comment","created_at":"2015-06-11T15:41:10Z","updated_at":"2015-06-11T15:41:10Z","html_url":"https://github.com/brickify/brickify/pull/596#discussion_r32234653","pull_request_url":"https://api.github.com/repos/brickify/brickify/pulls/596","_links":{"self":{"href":"https://api.github.com/repos/brickify/brickify/pulls/comments/32234653"},"html":{"href":"https://github.com/brickify/brickify/pull/596#discussion_r32234653"},"pull_request":{"href":"https://api.github.com/repos/brickify/brickify/pulls/596"}}},"pull_request":{"url":"https://api.github.com/repos/brickify/brickify/pulls/596","id":37475308,"html_url":"https://github.com/brickify/brickify/pull/596","diff_url":"https://github.com/brickify/brickify/pull/596.diff","patch_url":"https://github.com/brickify/brickify/pull/596.patch","issue_url":"https://api.github.com/repos/brickify/brickify/issues/596","number":596,"state":"open","locked":false,"title":"SSAO","user":{"login":"AtiX","id":236678,"avatar_url":"https://avatars.githubusercontent.com/u/236678?v=3","gravatar_id":"","url":"https://api.github.com/users/AtiX","html_url":"https://github.com/AtiX","followers_url":"https://api.github.com/users/AtiX/followers","following_url":"https://api.github.com/users/AtiX/following{/other_user}","gists_url":"https://api.github.com/users/AtiX/gists{/gist_id}","starred_url":"https://api.github.com/users/AtiX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtiX/subscriptions","organizations_url":"https://api.github.com/users/AtiX/orgs","repos_url":"https://api.github.com/users/AtiX/repos","events_url":"https://api.github.com/users/AtiX/events{/privacy}","received_events_url":"https://api.github.com/users/AtiX/received_events","type":"User","site_admin":false},"body":"Bildschirmkoordiantensystemumgebungsverschattung!","created_at":"2015-06-11T15:21:21Z","updated_at":"2015-06-11T15:41:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"233d7b572d2ffb98543fa2ba2b17eb268dc7aa30","assignee":null,"milestone":{"url":"https://api.github.com/repos/brickify/brickify/milestones/17","html_url":"https://github.com/brickify/brickify/milestones/Final%20BP%20release","labels_url":"https://api.github.com/repos/brickify/brickify/milestones/17/labels","id":1156669,"number":17,"title":"Final BP release","description":"v1.0.0","creator":{"login":"Steditor","id":2188983,"avatar_url":"https://avatars.githubusercontent.com/u/2188983?v=3","gravatar_id":"","url":"https://api.github.com/users/Steditor","html_url":"https://github.com/Steditor","followers_url":"https://api.github.com/users/Steditor/followers","following_url":"https://api.github.com/users/Steditor/following{/other_user}","gists_url":"https://api.github.com/users/Steditor/gists{/gist_id}","starred_url":"https://api.github.com/users/Steditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Steditor/subscriptions","organizations_url":"https://api.github.com/users/Steditor/orgs","repos_url":"https://api.github.com/users/Steditor/repos","events_url":"https://api.github.com/users/Steditor/events{/privacy}","received_events_url":"https://api.github.com/users/Steditor/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2015-06-09T11:30:25Z","updated_at":"2015-06-11T15:21:21Z","due_on":"2015-07-22T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/brickify/brickify/pulls/596/commits","review_comments_url":"https://api.github.com/repos/brickify/brickify/pulls/596/comments","review_comment_url":"https://api.github.com/repos/brickify/brickify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brickify/brickify/issues/596/comments","statuses_url":"https://api.github.com/repos/brickify/brickify/statuses/3ee104cc58291ec53dec01850b3a96b0f6bedb59","head":{"label":"brickify:feature/ssaoInRenderingPipeline","ref":"feature/ssaoInRenderingPipeline","sha":"3ee104cc58291ec53dec01850b3a96b0f6bedb59","user":{"login":"brickify","id":9961854,"avatar_url":"https://avatars.githubusercontent.com/u/9961854?v=3","gravatar_id":"","url":"https://api.github.com/users/brickify","html_url":"https://github.com/brickify","followers_url":"https://api.github.com/users/brickify/followers","following_url":"https://api.github.com/users/brickify/following{/other_user}","gists_url":"https://api.github.com/users/brickify/gists{/gist_id}","starred_url":"https://api.github.com/users/brickify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickify/subscriptions","organizations_url":"https://api.github.com/users/brickify/orgs","repos_url":"https://api.github.com/users/brickify/repos","events_url":"https://api.github.com/users/brickify/events{/privacy}","received_events_url":"https://api.github.com/users/brickify/received_events","type":"Organization","site_admin":false},"repo":{"id":27174799,"name":"brickify","full_name":"brickify/brickify","owner":{"login":"brickify","id":9961854,"avatar_url":"https://avatars.githubusercontent.com/u/9961854?v=3","gravatar_id":"","url":"https://api.github.com/users/brickify","html_url":"https://github.com/brickify","followers_url":"https://api.github.com/users/brickify/followers","following_url":"https://api.github.com/users/brickify/following{/other_user}","gists_url":"https://api.github.com/users/brickify/gists{/gist_id}","starred_url":"https://api.github.com/users/brickify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickify/subscriptions","organizations_url":"https://api.github.com/users/brickify/orgs","repos_url":"https://api.github.com/users/brickify/repos","events_url":"https://api.github.com/users/brickify/events{/privacy}","received_events_url":"https://api.github.com/users/brickify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brickify/brickify","description":"Speed up 3D printing using LEGO® bricks.","fork":false,"url":"https://api.github.com/repos/brickify/brickify","forks_url":"https://api.github.com/repos/brickify/brickify/forks","keys_url":"https://api.github.com/repos/brickify/brickify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brickify/brickify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brickify/brickify/teams","hooks_url":"https://api.github.com/repos/brickify/brickify/hooks","issue_events_url":"https://api.github.com/repos/brickify/brickify/issues/events{/number}","events_url":"https://api.github.com/repos/brickify/brickify/events","assignees_url":"https://api.github.com/repos/brickify/brickify/assignees{/user}","branches_url":"https://api.github.com/repos/brickify/brickify/branches{/branch}","tags_url":"https://api.github.com/repos/brickify/brickify/tags","blobs_url":"https://api.github.com/repos/brickify/brickify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brickify/brickify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brickify/brickify/git/refs{/sha}","trees_url":"https://api.github.com/repos/brickify/brickify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brickify/brickify/statuses/{sha}","languages_url":"https://api.github.com/repos/brickify/brickify/languages","stargazers_url":"https://api.github.com/repos/brickify/brickify/stargazers","contributors_url":"https://api.github.com/repos/brickify/brickify/contributors","subscribers_url":"https://api.github.com/repos/brickify/brickify/subscribers","subscription_url":"https://api.github.com/repos/brickify/brickify/subscription","commits_url":"https://api.github.com/repos/brickify/brickify/commits{/sha}","git_commits_url":"https://api.github.com/repos/brickify/brickify/git/commits{/sha}","comments_url":"https://api.github.com/repos/brickify/brickify/comments{/number}","issue_comment_url":"https://api.github.com/repos/brickify/brickify/issues/comments{/number}","contents_url":"https://api.github.com/repos/brickify/brickify/contents/{+path}","compare_url":"https://api.github.com/repos/brickify/brickify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brickify/brickify/merges","archive_url":"https://api.github.com/repos/brickify/brickify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brickify/brickify/downloads","issues_url":"https://api.github.com/repos/brickify/brickify/issues{/number}","pulls_url":"https://api.github.com/repos/brickify/brickify/pulls{/number}","milestones_url":"https://api.github.com/repos/brickify/brickify/milestones{/number}","notifications_url":"https://api.github.com/repos/brickify/brickify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brickify/brickify/labels{/name}","releases_url":"https://api.github.com/repos/brickify/brickify/releases{/id}","created_at":"2014-11-26T11:58:38Z","updated_at":"2015-06-09T11:45:40Z","pushed_at":"2015-06-11T15:31:57Z","git_url":"git://github.com/brickify/brickify.git","ssh_url":"git@github.com:brickify/brickify.git","clone_url":"https://github.com/brickify/brickify.git","svn_url":"https://github.com/brickify/brickify","homepage":"http://brickify.it","size":26562,"stargazers_count":6,"watchers_count":6,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":91,"forks":0,"open_issues":91,"watchers":6,"default_branch":"develop"}},"base":{"label":"brickify:develop","ref":"develop","sha":"e2aff0278e78bb9656ed7354d8c848ab5717ac8a","user":{"login":"brickify","id":9961854,"avatar_url":"https://avatars.githubusercontent.com/u/9961854?v=3","gravatar_id":"","url":"https://api.github.com/users/brickify","html_url":"https://github.com/brickify","followers_url":"https://api.github.com/users/brickify/followers","following_url":"https://api.github.com/users/brickify/following{/other_user}","gists_url":"https://api.github.com/users/brickify/gists{/gist_id}","starred_url":"https://api.github.com/users/brickify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickify/subscriptions","organizations_url":"https://api.github.com/users/brickify/orgs","repos_url":"https://api.github.com/users/brickify/repos","events_url":"https://api.github.com/users/brickify/events{/privacy}","received_events_url":"https://api.github.com/users/brickify/received_events","type":"Organization","site_admin":false},"repo":{"id":27174799,"name":"brickify","full_name":"brickify/brickify","owner":{"login":"brickify","id":9961854,"avatar_url":"https://avatars.githubusercontent.com/u/9961854?v=3","gravatar_id":"","url":"https://api.github.com/users/brickify","html_url":"https://github.com/brickify","followers_url":"https://api.github.com/users/brickify/followers","following_url":"https://api.github.com/users/brickify/following{/other_user}","gists_url":"https://api.github.com/users/brickify/gists{/gist_id}","starred_url":"https://api.github.com/users/brickify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickify/subscriptions","organizations_url":"https://api.github.com/users/brickify/orgs","repos_url":"https://api.github.com/users/brickify/repos","events_url":"https://api.github.com/users/brickify/events{/privacy}","received_events_url":"https://api.github.com/users/brickify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brickify/brickify","description":"Speed up 3D printing using LEGO® bricks.","fork":false,"url":"https://api.github.com/repos/brickify/brickify","forks_url":"https://api.github.com/repos/brickify/brickify/forks","keys_url":"https://api.github.com/repos/brickify/brickify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brickify/brickify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brickify/brickify/teams","hooks_url":"https://api.github.com/repos/brickify/brickify/hooks","issue_events_url":"https://api.github.com/repos/brickify/brickify/issues/events{/number}","events_url":"https://api.github.com/repos/brickify/brickify/events","assignees_url":"https://api.github.com/repos/brickify/brickify/assignees{/user}","branches_url":"https://api.github.com/repos/brickify/brickify/branches{/branch}","tags_url":"https://api.github.com/repos/brickify/brickify/tags","blobs_url":"https://api.github.com/repos/brickify/brickify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brickify/brickify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brickify/brickify/git/refs{/sha}","trees_url":"https://api.github.com/repos/brickify/brickify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brickify/brickify/statuses/{sha}","languages_url":"https://api.github.com/repos/brickify/brickify/languages","stargazers_url":"https://api.github.com/repos/brickify/brickify/stargazers","contributors_url":"https://api.github.com/repos/brickify/brickify/contributors","subscribers_url":"https://api.github.com/repos/brickify/brickify/subscribers","subscription_url":"https://api.github.com/repos/brickify/brickify/subscription","commits_url":"https://api.github.com/repos/brickify/brickify/commits{/sha}","git_commits_url":"https://api.github.com/repos/brickify/brickify/git/commits{/sha}","comments_url":"https://api.github.com/repos/brickify/brickify/comments{/number}","issue_comment_url":"https://api.github.com/repos/brickify/brickify/issues/comments{/number}","contents_url":"https://api.github.com/repos/brickify/brickify/contents/{+path}","compare_url":"https://api.github.com/repos/brickify/brickify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brickify/brickify/merges","archive_url":"https://api.github.com/repos/brickify/brickify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brickify/brickify/downloads","issues_url":"https://api.github.com/repos/brickify/brickify/issues{/number}","pulls_url":"https://api.github.com/repos/brickify/brickify/pulls{/number}","milestones_url":"https://api.github.com/repos/brickify/brickify/milestones{/number}","notifications_url":"https://api.github.com/repos/brickify/brickify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brickify/brickify/labels{/name}","releases_url":"https://api.github.com/repos/brickify/brickify/releases{/id}","created_at":"2014-11-26T11:58:38Z","updated_at":"2015-06-09T11:45:40Z","pushed_at":"2015-06-11T15:31:57Z","git_url":"git://github.com/brickify/brickify.git","ssh_url":"git@github.com:brickify/brickify.git","clone_url":"https://github.com/brickify/brickify.git","svn_url":"https://github.com/brickify/brickify","homepage":"http://brickify.it","size":26562,"stargazers_count":6,"watchers_count":6,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":91,"forks":0,"open_issues":91,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/brickify/brickify/pulls/596"},"html":{"href":"https://github.com/brickify/brickify/pull/596"},"issue":{"href":"https://api.github.com/repos/brickify/brickify/issues/596"},"comments":{"href":"https://api.github.com/repos/brickify/brickify/issues/596/comments"},"review_comments":{"href":"https://api.github.com/repos/brickify/brickify/pulls/596/comments"},"review_comment":{"href":"https://api.github.com/repos/brickify/brickify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brickify/brickify/pulls/596/commits"},"statuses":{"href":"https://api.github.com/repos/brickify/brickify/statuses/3ee104cc58291ec53dec01850b3a96b0f6bedb59"}}}}