{"action":"created","comment":{"url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/comments/50247114","id":50247114,"diff_hunk":"@@ -0,0 +1,240 @@\n+#version 430\n+\n+uniform mat4 M;\n+uniform mat4 V;\n+uniform mat4 P;\n+uniform vec3 ExplosionOrigin;\n+uniform float TimeSinceDeath; \n+uniform float ExplosionDuration; \n+//uniform bool Gravity;\n+//uniform float GravityForce;\n+//uniform float ObjectRadius;\n+uniform vec4 EndColor;\n+uniform bool Randomness;\n+uniform float RandomNumbers[50];\n+uniform float RandomnessScalar;\n+uniform vec2 Velocity;\n+uniform bool ColorByDistance;\n+//uniform bool ReverseAnimation;\n+//uniform bool Wireframe;\n+uniform bool ExponentialAccelaration;\n+\n+in VertexData{\n+\tvec3 Position;\n+\tvec3 Normal;\n+\tvec2 TextureCoordinate;\n+\tvec4 DiffuseColor;\n+\tvec4 ExplosionColor;\n+}Input[];\n+\n+out VertexData{\n+\tvec3 Position;\n+\tvec3 Normal;\n+\tvec2 TextureCoordinate;\n+\tvec4 DiffuseColor;\n+\tvec4 ExplosionColor;\n+}Output;\n+\n+layout(triangles) in;\n+layout(triangle_strip, max_vertices = 3) out;\n+\n+// returns a \"random\" number based on input parameter\n+float GetRandomNumber(int polygon_index)\n+{\n+\tint randomIndex = int(mod(polygon_index, 50));\n+\t\n+\tswitch (randomIndex)\n+\t{\n+\t\tcase 0: return RandomNumbers[0];\n+\t\tcase 1: return RandomNumbers[1];\n+\t\tcase 2: return RandomNumbers[2];\n+\t\tcase 3: return RandomNumbers[3];\n+\t\tcase 4: return RandomNumbers[4];\n+\t\tcase 5: return RandomNumbers[5];\n+\t\tcase 6: return RandomNumbers[6];\n+\t\tcase 7: return RandomNumbers[7];\n+\t\tcase 8: return RandomNumbers[8];\n+\t\tcase 9: return RandomNumbers[9];\n+\t\tcase 10: return RandomNumbers[10];\n+\t\tcase 11: return RandomNumbers[11];\n+\t\tcase 12: return RandomNumbers[12];\n+\t\tcase 13: return RandomNumbers[13];\n+\t\tcase 14: return RandomNumbers[14];\n+\t\tcase 15: return RandomNumbers[15];\n+\t\tcase 16: return RandomNumbers[16];\n+\t\tcase 17: return RandomNumbers[17];\n+\t\tcase 18: return RandomNumbers[18];\n+\t\tcase 19: return RandomNumbers[19];\n+\t\tcase 20: return RandomNumbers[20];\n+\t\tcase 21: return RandomNumbers[21];\n+\t\tcase 22: return RandomNumbers[22];\n+\t\tcase 23: return RandomNumbers[23];\n+\t\tcase 24: return RandomNumbers[24];\n+\t\tcase 25: return RandomNumbers[25];\n+\t\tcase 26: return RandomNumbers[26];\n+\t\tcase 27: return RandomNumbers[27];\n+\t\tcase 28: return RandomNumbers[28];\n+\t\tcase 29: return RandomNumbers[29];\n+\t\tcase 30: return RandomNumbers[30];\n+\t\tcase 31: return RandomNumbers[31];\n+\t\tcase 32: return RandomNumbers[32];\n+\t\tcase 33: return RandomNumbers[33];\n+\t\tcase 34: return RandomNumbers[34];\n+\t\tcase 35: return RandomNumbers[35];\n+\t\tcase 36: return RandomNumbers[36];\n+\t\tcase 37: return RandomNumbers[37];\n+\t\tcase 38: return RandomNumbers[38];\n+\t\tcase 39: return RandomNumbers[39];\n+\t\tcase 40: return RandomNumbers[40];\n+\t\tcase 41: return RandomNumbers[41];\n+\t\tcase 42: return RandomNumbers[42];\n+\t\tcase 43: return RandomNumbers[43];\n+\t\tcase 44: return RandomNumbers[44];\n+\t\tcase 45: return RandomNumbers[45];\n+\t\tcase 46: return RandomNumbers[46];\n+\t\tcase 47: return RandomNumbers[47];\n+\t\tcase 48: return RandomNumbers[48];\n+\t\tcase 49: return RandomNumbers[49];","path":"resources/Shaders/ExplosionEffect.geom.glsl","position":97,"original_position":97,"commit_id":"77e1dacb6f5437e1dba1183c9f2f011f88ddb35c","original_commit_id":"77e1dacb6f5437e1dba1183c9f2f011f88ddb35c","user":{"login":"FakeShemp","id":7952047,"avatar_url":"https://avatars.githubusercontent.com/u/7952047?v=3","gravatar_id":"","url":"https://api.github.com/users/FakeShemp","html_url":"https://github.com/FakeShemp","followers_url":"https://api.github.com/users/FakeShemp/followers","following_url":"https://api.github.com/users/FakeShemp/following{/other_user}","gists_url":"https://api.github.com/users/FakeShemp/gists{/gist_id}","starred_url":"https://api.github.com/users/FakeShemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FakeShemp/subscriptions","organizations_url":"https://api.github.com/users/FakeShemp/orgs","repos_url":"https://api.github.com/users/FakeShemp/repos","events_url":"https://api.github.com/users/FakeShemp/events{/privacy}","received_events_url":"https://api.github.com/users/FakeShemp/received_events","type":"User","site_admin":false},"body":"Yup. Fuck that shit. But how do I make random numbers on the shader in a non-shit way then?","created_at":"2016-01-20T12:15:59Z","updated_at":"2016-01-20T12:15:59Z","html_url":"https://github.com/teamfisk/TacticalZ/pull/38#discussion_r50247114","pull_request_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/comments/50247114"},"html":{"href":"https://github.com/teamfisk/TacticalZ/pull/38#discussion_r50247114"},"pull_request":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38","id":56437748,"html_url":"https://github.com/teamfisk/TacticalZ/pull/38","diff_url":"https://github.com/teamfisk/TacticalZ/pull/38.diff","patch_url":"https://github.com/teamfisk/TacticalZ/pull/38.patch","issue_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/38","number":38,"state":"open","locked":false,"title":"Cool death animation","user":{"login":"Ayumiwii","id":11852692,"avatar_url":"https://avatars.githubusercontent.com/u/11852692?v=3","gravatar_id":"","url":"https://api.github.com/users/Ayumiwii","html_url":"https://github.com/Ayumiwii","followers_url":"https://api.github.com/users/Ayumiwii/followers","following_url":"https://api.github.com/users/Ayumiwii/following{/other_user}","gists_url":"https://api.github.com/users/Ayumiwii/gists{/gist_id}","starred_url":"https://api.github.com/users/Ayumiwii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ayumiwii/subscriptions","organizations_url":"https://api.github.com/users/Ayumiwii/orgs","repos_url":"https://api.github.com/users/Ayumiwii/repos","events_url":"https://api.github.com/users/Ayumiwii/events{/privacy}","received_events_url":"https://api.github.com/users/Ayumiwii/received_events","type":"User","site_admin":false},"body":"Add some cool death animation that can be used to explode a geometry.","created_at":"2016-01-19T09:02:54Z","updated_at":"2016-01-20T12:15:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aff7c50902d9ae1933502023dadf25efdbb8c48a","assignee":{"login":"sippeangelo","id":262378,"avatar_url":"https://avatars.githubusercontent.com/u/262378?v=3","gravatar_id":"","url":"https://api.github.com/users/sippeangelo","html_url":"https://github.com/sippeangelo","followers_url":"https://api.github.com/users/sippeangelo/followers","following_url":"https://api.github.com/users/sippeangelo/following{/other_user}","gists_url":"https://api.github.com/users/sippeangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/sippeangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sippeangelo/subscriptions","organizations_url":"https://api.github.com/users/sippeangelo/orgs","repos_url":"https://api.github.com/users/sippeangelo/repos","events_url":"https://api.github.com/users/sippeangelo/events{/privacy}","received_events_url":"https://api.github.com/users/sippeangelo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38/commits","review_comments_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38/comments","review_comment_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/38/comments","statuses_url":"https://api.github.com/repos/teamfisk/TacticalZ/statuses/77e1dacb6f5437e1dba1183c9f2f011f88ddb35c","head":{"label":"teamfisk:CoolDeathAnimation","ref":"CoolDeathAnimation","sha":"77e1dacb6f5437e1dba1183c9f2f011f88ddb35c","user":{"login":"teamfisk","id":8938624,"avatar_url":"https://avatars.githubusercontent.com/u/8938624?v=3","gravatar_id":"","url":"https://api.github.com/users/teamfisk","html_url":"https://github.com/teamfisk","followers_url":"https://api.github.com/users/teamfisk/followers","following_url":"https://api.github.com/users/teamfisk/following{/other_user}","gists_url":"https://api.github.com/users/teamfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/teamfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamfisk/subscriptions","organizations_url":"https://api.github.com/users/teamfisk/orgs","repos_url":"https://api.github.com/users/teamfisk/repos","events_url":"https://api.github.com/users/teamfisk/events{/privacy}","received_events_url":"https://api.github.com/users/teamfisk/received_events","type":"Organization","site_admin":false},"repo":{"id":46560418,"name":"TacticalZ","full_name":"teamfisk/TacticalZ","owner":{"login":"teamfisk","id":8938624,"avatar_url":"https://avatars.githubusercontent.com/u/8938624?v=3","gravatar_id":"","url":"https://api.github.com/users/teamfisk","html_url":"https://github.com/teamfisk","followers_url":"https://api.github.com/users/teamfisk/followers","following_url":"https://api.github.com/users/teamfisk/following{/other_user}","gists_url":"https://api.github.com/users/teamfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/teamfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamfisk/subscriptions","organizations_url":"https://api.github.com/users/teamfisk/orgs","repos_url":"https://api.github.com/users/teamfisk/repos","events_url":"https://api.github.com/users/teamfisk/events{/privacy}","received_events_url":"https://api.github.com/users/teamfisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamfisk/TacticalZ","description":"","fork":false,"url":"https://api.github.com/repos/teamfisk/TacticalZ","forks_url":"https://api.github.com/repos/teamfisk/TacticalZ/forks","keys_url":"https://api.github.com/repos/teamfisk/TacticalZ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamfisk/TacticalZ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamfisk/TacticalZ/teams","hooks_url":"https://api.github.com/repos/teamfisk/TacticalZ/hooks","issue_events_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/events{/number}","events_url":"https://api.github.com/repos/teamfisk/TacticalZ/events","assignees_url":"https://api.github.com/repos/teamfisk/TacticalZ/assignees{/user}","branches_url":"https://api.github.com/repos/teamfisk/TacticalZ/branches{/branch}","tags_url":"https://api.github.com/repos/teamfisk/TacticalZ/tags","blobs_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamfisk/TacticalZ/statuses/{sha}","languages_url":"https://api.github.com/repos/teamfisk/TacticalZ/languages","stargazers_url":"https://api.github.com/repos/teamfisk/TacticalZ/stargazers","contributors_url":"https://api.github.com/repos/teamfisk/TacticalZ/contributors","subscribers_url":"https://api.github.com/repos/teamfisk/TacticalZ/subscribers","subscription_url":"https://api.github.com/repos/teamfisk/TacticalZ/subscription","commits_url":"https://api.github.com/repos/teamfisk/TacticalZ/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamfisk/TacticalZ/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamfisk/TacticalZ/contents/{+path}","compare_url":"https://api.github.com/repos/teamfisk/TacticalZ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamfisk/TacticalZ/merges","archive_url":"https://api.github.com/repos/teamfisk/TacticalZ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamfisk/TacticalZ/downloads","issues_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues{/number}","pulls_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls{/number}","milestones_url":"https://api.github.com/repos/teamfisk/TacticalZ/milestones{/number}","notifications_url":"https://api.github.com/repos/teamfisk/TacticalZ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamfisk/TacticalZ/labels{/name}","releases_url":"https://api.github.com/repos/teamfisk/TacticalZ/releases{/id}","created_at":"2015-11-20T12:23:41Z","updated_at":"2016-01-11T11:43:46Z","pushed_at":"2016-01-20T10:51:39Z","git_url":"git://github.com/teamfisk/TacticalZ.git","ssh_url":"git@github.com:teamfisk/TacticalZ.git","clone_url":"https://github.com/teamfisk/TacticalZ.git","svn_url":"https://github.com/teamfisk/TacticalZ","homepage":null,"size":32796,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"teamfisk:master","ref":"master","sha":"bf3f8aea892e15eebe25e90e2968e06da0eff2f1","user":{"login":"teamfisk","id":8938624,"avatar_url":"https://avatars.githubusercontent.com/u/8938624?v=3","gravatar_id":"","url":"https://api.github.com/users/teamfisk","html_url":"https://github.com/teamfisk","followers_url":"https://api.github.com/users/teamfisk/followers","following_url":"https://api.github.com/users/teamfisk/following{/other_user}","gists_url":"https://api.github.com/users/teamfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/teamfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamfisk/subscriptions","organizations_url":"https://api.github.com/users/teamfisk/orgs","repos_url":"https://api.github.com/users/teamfisk/repos","events_url":"https://api.github.com/users/teamfisk/events{/privacy}","received_events_url":"https://api.github.com/users/teamfisk/received_events","type":"Organization","site_admin":false},"repo":{"id":46560418,"name":"TacticalZ","full_name":"teamfisk/TacticalZ","owner":{"login":"teamfisk","id":8938624,"avatar_url":"https://avatars.githubusercontent.com/u/8938624?v=3","gravatar_id":"","url":"https://api.github.com/users/teamfisk","html_url":"https://github.com/teamfisk","followers_url":"https://api.github.com/users/teamfisk/followers","following_url":"https://api.github.com/users/teamfisk/following{/other_user}","gists_url":"https://api.github.com/users/teamfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/teamfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamfisk/subscriptions","organizations_url":"https://api.github.com/users/teamfisk/orgs","repos_url":"https://api.github.com/users/teamfisk/repos","events_url":"https://api.github.com/users/teamfisk/events{/privacy}","received_events_url":"https://api.github.com/users/teamfisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamfisk/TacticalZ","description":"","fork":false,"url":"https://api.github.com/repos/teamfisk/TacticalZ","forks_url":"https://api.github.com/repos/teamfisk/TacticalZ/forks","keys_url":"https://api.github.com/repos/teamfisk/TacticalZ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamfisk/TacticalZ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamfisk/TacticalZ/teams","hooks_url":"https://api.github.com/repos/teamfisk/TacticalZ/hooks","issue_events_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/events{/number}","events_url":"https://api.github.com/repos/teamfisk/TacticalZ/events","assignees_url":"https://api.github.com/repos/teamfisk/TacticalZ/assignees{/user}","branches_url":"https://api.github.com/repos/teamfisk/TacticalZ/branches{/branch}","tags_url":"https://api.github.com/repos/teamfisk/TacticalZ/tags","blobs_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamfisk/TacticalZ/statuses/{sha}","languages_url":"https://api.github.com/repos/teamfisk/TacticalZ/languages","stargazers_url":"https://api.github.com/repos/teamfisk/TacticalZ/stargazers","contributors_url":"https://api.github.com/repos/teamfisk/TacticalZ/contributors","subscribers_url":"https://api.github.com/repos/teamfisk/TacticalZ/subscribers","subscription_url":"https://api.github.com/repos/teamfisk/TacticalZ/subscription","commits_url":"https://api.github.com/repos/teamfisk/TacticalZ/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamfisk/TacticalZ/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamfisk/TacticalZ/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamfisk/TacticalZ/contents/{+path}","compare_url":"https://api.github.com/repos/teamfisk/TacticalZ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamfisk/TacticalZ/merges","archive_url":"https://api.github.com/repos/teamfisk/TacticalZ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamfisk/TacticalZ/downloads","issues_url":"https://api.github.com/repos/teamfisk/TacticalZ/issues{/number}","pulls_url":"https://api.github.com/repos/teamfisk/TacticalZ/pulls{/number}","milestones_url":"https://api.github.com/repos/teamfisk/TacticalZ/milestones{/number}","notifications_url":"https://api.github.com/repos/teamfisk/TacticalZ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamfisk/TacticalZ/labels{/name}","releases_url":"https://api.github.com/repos/teamfisk/TacticalZ/releases{/id}","created_at":"2015-11-20T12:23:41Z","updated_at":"2016-01-11T11:43:46Z","pushed_at":"2016-01-20T10:51:39Z","git_url":"git://github.com/teamfisk/TacticalZ.git","ssh_url":"git@github.com:teamfisk/TacticalZ.git","clone_url":"https://github.com/teamfisk/TacticalZ.git","svn_url":"https://github.com/teamfisk/TacticalZ","homepage":null,"size":32796,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38"},"html":{"href":"https://github.com/teamfisk/TacticalZ/pull/38"},"issue":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/issues/38"},"comments":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/teamfisk/TacticalZ/statuses/77e1dacb6f5437e1dba1183c9f2f011f88ddb35c"}}}}