{"action":"created","issue":{"url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/672","labels_url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/672/comments","events_url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/672/events","html_url":"https://github.com/virtual-world-framework/mars-game/pull/672","id":101998835,"number":672,"title":"Four Triangle Shader","user":{"login":"BrettASwift","id":4560557,"avatar_url":"https://avatars.githubusercontent.com/u/4560557?v=3","gravatar_id":"","url":"https://api.github.com/users/BrettASwift","html_url":"https://github.com/BrettASwift","followers_url":"https://api.github.com/users/BrettASwift/followers","following_url":"https://api.github.com/users/BrettASwift/following{/other_user}","gists_url":"https://api.github.com/users/BrettASwift/gists{/gist_id}","starred_url":"https://api.github.com/users/BrettASwift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrettASwift/subscriptions","organizations_url":"https://api.github.com/users/BrettASwift/orgs","repos_url":"https://api.github.com/users/BrettASwift/repos","events_url":"https://api.github.com/users/BrettASwift/events{/privacy}","received_events_url":"https://api.github.com/users/BrettASwift/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-19T21:06:06Z","updated_at":"2015-08-25T18:50:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/virtual-world-framework/mars-game/pulls/672","html_url":"https://github.com/virtual-world-framework/mars-game/pull/672","diff_url":"https://github.com/virtual-world-framework/mars-game/pull/672.diff","patch_url":"https://github.com/virtual-world-framework/mars-game/pull/672.patch"},"body":"@kadst43 @AmbientOSX \r\n\r\nThis allows up to 4 triangles to be drawn by the shader. In order to pass them in, you'll just have to add 3 more points to the `material.triangle` property.\r\n\r\n`material.triangle = [ pa, pb, pc, pd, pe, pf ]` Would be 2 triangles, where pa, pb, and pc are the points of the first and pd, pe, and pf are the points of the second. Each point is of the format `[ x, y ]`. Anything beyond the 12th point will not be rendered by the shader.\r\n\r\nI can go ahead and make changes to the code to make adding/managing points easier if you'd like. If so, I will wait until that is done before merging this."},"comment":{"url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/comments/134699732","html_url":"https://github.com/virtual-world-framework/mars-game/pull/672#issuecomment-134699732","issue_url":"https://api.github.com/repos/virtual-world-framework/mars-game/issues/672","id":134699732,"user":{"login":"AmbientOSX","id":1609980,"avatar_url":"https://avatars.githubusercontent.com/u/1609980?v=3","gravatar_id":"","url":"https://api.github.com/users/AmbientOSX","html_url":"https://github.com/AmbientOSX","followers_url":"https://api.github.com/users/AmbientOSX/followers","following_url":"https://api.github.com/users/AmbientOSX/following{/other_user}","gists_url":"https://api.github.com/users/AmbientOSX/gists{/gist_id}","starred_url":"https://api.github.com/users/AmbientOSX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmbientOSX/subscriptions","organizations_url":"https://api.github.com/users/AmbientOSX/orgs","repos_url":"https://api.github.com/users/AmbientOSX/repos","events_url":"https://api.github.com/users/AmbientOSX/events{/privacy}","received_events_url":"https://api.github.com/users/AmbientOSX/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T18:50:51Z","updated_at":"2015-08-25T18:50:51Z","body":":+1: Lets merge this and I'll rebase/implement in Jonatan's branch when I'm debugging the other multi-triangle issues."}}