{"action":"created","comment":{"url":"https://api.github.com/repos/playcanvas/engine/pulls/comments/72885869","id":72885869,"diff_hunk":"@@ -400,7 +406,18 @@ pc.extend(pc, function () {\n         this.shader = shader;\n     };\n \n+    var StencilParameters = function (options) {","path":"src/scene/material.js","position":null,"original_position":31,"commit_id":"b2b620e09b3b1a42e1edce03eee66e0c15180a43","original_commit_id":"6d86f131a47a4af72229d054471f283f1574f813","user":{"login":"guycalledfrank","id":7008423,"avatar_url":"https://avatars.githubusercontent.com/u/7008423?v=3","gravatar_id":"","url":"https://api.github.com/users/guycalledfrank","html_url":"https://github.com/guycalledfrank","followers_url":"https://api.github.com/users/guycalledfrank/followers","following_url":"https://api.github.com/users/guycalledfrank/following{/other_user}","gists_url":"https://api.github.com/users/guycalledfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/guycalledfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guycalledfrank/subscriptions","organizations_url":"https://api.github.com/users/guycalledfrank/orgs","repos_url":"https://api.github.com/users/guycalledfrank/repos","events_url":"https://api.github.com/users/guycalledfrank/events{/privacy}","received_events_url":"https://api.github.com/users/guycalledfrank/received_events","type":"User","site_admin":false},"body":"Documented","created_at":"2016-07-30T11:09:04Z","updated_at":"2016-07-30T11:09:04Z","html_url":"https://github.com/playcanvas/engine/pull/703#discussion_r72885869","pull_request_url":"https://api.github.com/repos/playcanvas/engine/pulls/703","_links":{"self":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/comments/72885869"},"html":{"href":"https://github.com/playcanvas/engine/pull/703#discussion_r72885869"},"pull_request":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/703"}}},"pull_request":{"url":"https://api.github.com/repos/playcanvas/engine/pulls/703","id":79436459,"html_url":"https://github.com/playcanvas/engine/pull/703","diff_url":"https://github.com/playcanvas/engine/pull/703.diff","patch_url":"https://github.com/playcanvas/engine/pull/703.patch","issue_url":"https://api.github.com/repos/playcanvas/engine/issues/703","number":703,"state":"open","locked":false,"title":"Stencil buffer access + misc","user":{"login":"guycalledfrank","id":7008423,"avatar_url":"https://avatars.githubusercontent.com/u/7008423?v=3","gravatar_id":"","url":"https://api.github.com/users/guycalledfrank","html_url":"https://github.com/guycalledfrank","followers_url":"https://api.github.com/users/guycalledfrank/followers","following_url":"https://api.github.com/users/guycalledfrank/following{/other_user}","gists_url":"https://api.github.com/users/guycalledfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/guycalledfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guycalledfrank/subscriptions","organizations_url":"https://api.github.com/users/guycalledfrank/orgs","repos_url":"https://api.github.com/users/guycalledfrank/repos","events_url":"https://api.github.com/users/guycalledfrank/events{/privacy}","received_events_url":"https://api.github.com/users/guycalledfrank/received_events","type":"User","site_admin":false},"body":"Stencil buffer access. Context is always created with the \"stencil\" option now. New device functions:\r\n- supportsStencil property tells if stencil buffer is supported;\r\n- setStencilTest(bool) enables/disables stencil;\r\n- setStencilFunc(func, ref, mask) configures the stencil test;\r\n- setStencilFuncFront\r\n- setStencilFuncBack\r\n- setStencilOperation(fail, zfail, zpass) configures how stencil buffer should be modified.\r\n- setStencilOperationFront\r\n- setStencilOperationBack\r\n\r\nNew class:\r\n- StencilParameters: contains info for stencilfunc/stencilop.\r\n\r\nNew material properties:\r\n- stencilFront;\r\n- stencilBack.\r\n\r\nYou set StencilParameters objects to these.\r\n\r\nMisc:\r\n- device.supportsMsaa tells if MSAA is supported/enabled;\r\n- **[BREAKING]** screen depth is changed, it's now linear view depth. Makes more sense/easier to reconstruct position. Some code using depth may work differently. Particles (softening) are patched.\r\n- drawQuadWithShader can be used with custom blending.","created_at":"2016-07-29T23:02:35Z","updated_at":"2016-07-30T11:09:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05d6061d382bcea993659f849297e6b740e79a42","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/playcanvas/engine/pulls/703/commits","review_comments_url":"https://api.github.com/repos/playcanvas/engine/pulls/703/comments","review_comment_url":"https://api.github.com/repos/playcanvas/engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/703/comments","statuses_url":"https://api.github.com/repos/playcanvas/engine/statuses/b2b620e09b3b1a42e1edce03eee66e0c15180a43","head":{"label":"guycalledfrank:shadowproj","ref":"shadowproj","sha":"b2b620e09b3b1a42e1edce03eee66e0c15180a43","user":{"login":"guycalledfrank","id":7008423,"avatar_url":"https://avatars.githubusercontent.com/u/7008423?v=3","gravatar_id":"","url":"https://api.github.com/users/guycalledfrank","html_url":"https://github.com/guycalledfrank","followers_url":"https://api.github.com/users/guycalledfrank/followers","following_url":"https://api.github.com/users/guycalledfrank/following{/other_user}","gists_url":"https://api.github.com/users/guycalledfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/guycalledfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guycalledfrank/subscriptions","organizations_url":"https://api.github.com/users/guycalledfrank/orgs","repos_url":"https://api.github.com/users/guycalledfrank/repos","events_url":"https://api.github.com/users/guycalledfrank/events{/privacy}","received_events_url":"https://api.github.com/users/guycalledfrank/received_events","type":"User","site_admin":false},"repo":{"id":24428576,"name":"engine","full_name":"guycalledfrank/engine","owner":{"login":"guycalledfrank","id":7008423,"avatar_url":"https://avatars.githubusercontent.com/u/7008423?v=3","gravatar_id":"","url":"https://api.github.com/users/guycalledfrank","html_url":"https://github.com/guycalledfrank","followers_url":"https://api.github.com/users/guycalledfrank/followers","following_url":"https://api.github.com/users/guycalledfrank/following{/other_user}","gists_url":"https://api.github.com/users/guycalledfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/guycalledfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guycalledfrank/subscriptions","organizations_url":"https://api.github.com/users/guycalledfrank/orgs","repos_url":"https://api.github.com/users/guycalledfrank/repos","events_url":"https://api.github.com/users/guycalledfrank/events{/privacy}","received_events_url":"https://api.github.com/users/guycalledfrank/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guycalledfrank/engine","description":"3D WebGL game engine with online toolset.","fork":true,"url":"https://api.github.com/repos/guycalledfrank/engine","forks_url":"https://api.github.com/repos/guycalledfrank/engine/forks","keys_url":"https://api.github.com/repos/guycalledfrank/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guycalledfrank/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guycalledfrank/engine/teams","hooks_url":"https://api.github.com/repos/guycalledfrank/engine/hooks","issue_events_url":"https://api.github.com/repos/guycalledfrank/engine/issues/events{/number}","events_url":"https://api.github.com/repos/guycalledfrank/engine/events","assignees_url":"https://api.github.com/repos/guycalledfrank/engine/assignees{/user}","branches_url":"https://api.github.com/repos/guycalledfrank/engine/branches{/branch}","tags_url":"https://api.github.com/repos/guycalledfrank/engine/tags","blobs_url":"https://api.github.com/repos/guycalledfrank/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guycalledfrank/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guycalledfrank/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/guycalledfrank/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guycalledfrank/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/guycalledfrank/engine/languages","stargazers_url":"https://api.github.com/repos/guycalledfrank/engine/stargazers","contributors_url":"https://api.github.com/repos/guycalledfrank/engine/contributors","subscribers_url":"https://api.github.com/repos/guycalledfrank/engine/subscribers","subscription_url":"https://api.github.com/repos/guycalledfrank/engine/subscription","commits_url":"https://api.github.com/repos/guycalledfrank/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/guycalledfrank/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/guycalledfrank/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/guycalledfrank/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/guycalledfrank/engine/contents/{+path}","compare_url":"https://api.github.com/repos/guycalledfrank/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guycalledfrank/engine/merges","archive_url":"https://api.github.com/repos/guycalledfrank/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guycalledfrank/engine/downloads","issues_url":"https://api.github.com/repos/guycalledfrank/engine/issues{/number}","pulls_url":"https://api.github.com/repos/guycalledfrank/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/guycalledfrank/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/guycalledfrank/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guycalledfrank/engine/labels{/name}","releases_url":"https://api.github.com/repos/guycalledfrank/engine/releases{/id}","deployments_url":"https://api.github.com/repos/guycalledfrank/engine/deployments","created_at":"2014-09-24T19:04:22Z","updated_at":"2016-01-13T14:02:34Z","pushed_at":"2016-07-30T11:08:33Z","git_url":"git://github.com/guycalledfrank/engine.git","ssh_url":"git@github.com:guycalledfrank/engine.git","clone_url":"https://github.com/guycalledfrank/engine.git","svn_url":"https://github.com/guycalledfrank/engine","homepage":"https://playcanvas.com/","size":49933,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"playcanvas:master","ref":"master","sha":"8ebff440cd0ecf800a5dbf618927c932c6a850cc","user":{"login":"playcanvas","id":1030579,"avatar_url":"https://avatars.githubusercontent.com/u/1030579?v=3","gravatar_id":"","url":"https://api.github.com/users/playcanvas","html_url":"https://github.com/playcanvas","followers_url":"https://api.github.com/users/playcanvas/followers","following_url":"https://api.github.com/users/playcanvas/following{/other_user}","gists_url":"https://api.github.com/users/playcanvas/gists{/gist_id}","starred_url":"https://api.github.com/users/playcanvas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playcanvas/subscriptions","organizations_url":"https://api.github.com/users/playcanvas/orgs","repos_url":"https://api.github.com/users/playcanvas/repos","events_url":"https://api.github.com/users/playcanvas/events{/privacy}","received_events_url":"https://api.github.com/users/playcanvas/received_events","type":"Organization","site_admin":false},"repo":{"id":19696006,"name":"engine","full_name":"playcanvas/engine","owner":{"login":"playcanvas","id":1030579,"avatar_url":"https://avatars.githubusercontent.com/u/1030579?v=3","gravatar_id":"","url":"https://api.github.com/users/playcanvas","html_url":"https://github.com/playcanvas","followers_url":"https://api.github.com/users/playcanvas/followers","following_url":"https://api.github.com/users/playcanvas/following{/other_user}","gists_url":"https://api.github.com/users/playcanvas/gists{/gist_id}","starred_url":"https://api.github.com/users/playcanvas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playcanvas/subscriptions","organizations_url":"https://api.github.com/users/playcanvas/orgs","repos_url":"https://api.github.com/users/playcanvas/repos","events_url":"https://api.github.com/users/playcanvas/events{/privacy}","received_events_url":"https://api.github.com/users/playcanvas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playcanvas/engine","description":"3D WebGL game engine with online toolset.","fork":false,"url":"https://api.github.com/repos/playcanvas/engine","forks_url":"https://api.github.com/repos/playcanvas/engine/forks","keys_url":"https://api.github.com/repos/playcanvas/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playcanvas/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playcanvas/engine/teams","hooks_url":"https://api.github.com/repos/playcanvas/engine/hooks","issue_events_url":"https://api.github.com/repos/playcanvas/engine/issues/events{/number}","events_url":"https://api.github.com/repos/playcanvas/engine/events","assignees_url":"https://api.github.com/repos/playcanvas/engine/assignees{/user}","branches_url":"https://api.github.com/repos/playcanvas/engine/branches{/branch}","tags_url":"https://api.github.com/repos/playcanvas/engine/tags","blobs_url":"https://api.github.com/repos/playcanvas/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playcanvas/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playcanvas/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/playcanvas/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playcanvas/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/playcanvas/engine/languages","stargazers_url":"https://api.github.com/repos/playcanvas/engine/stargazers","contributors_url":"https://api.github.com/repos/playcanvas/engine/contributors","subscribers_url":"https://api.github.com/repos/playcanvas/engine/subscribers","subscription_url":"https://api.github.com/repos/playcanvas/engine/subscription","commits_url":"https://api.github.com/repos/playcanvas/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/playcanvas/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/playcanvas/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/playcanvas/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/playcanvas/engine/contents/{+path}","compare_url":"https://api.github.com/repos/playcanvas/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playcanvas/engine/merges","archive_url":"https://api.github.com/repos/playcanvas/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playcanvas/engine/downloads","issues_url":"https://api.github.com/repos/playcanvas/engine/issues{/number}","pulls_url":"https://api.github.com/repos/playcanvas/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/playcanvas/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/playcanvas/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playcanvas/engine/labels{/name}","releases_url":"https://api.github.com/repos/playcanvas/engine/releases{/id}","deployments_url":"https://api.github.com/repos/playcanvas/engine/deployments","created_at":"2014-05-12T11:24:30Z","updated_at":"2016-07-30T00:13:32Z","pushed_at":"2016-07-30T11:08:33Z","git_url":"git://github.com/playcanvas/engine.git","ssh_url":"git@github.com:playcanvas/engine.git","clone_url":"https://github.com/playcanvas/engine.git","svn_url":"https://github.com/playcanvas/engine","homepage":"https://playcanvas.com/","size":53669,"stargazers_count":2005,"watchers_count":2005,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":413,"mirror_url":null,"open_issues_count":80,"forks":413,"open_issues":80,"watchers":2005,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/703"},"html":{"href":"https://github.com/playcanvas/engine/pull/703"},"issue":{"href":"https://api.github.com/repos/playcanvas/engine/issues/703"},"comments":{"href":"https://api.github.com/repos/playcanvas/engine/issues/703/comments"},"review_comments":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/703/comments"},"review_comment":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/playcanvas/engine/pulls/703/commits"},"statuses":{"href":"https://api.github.com/repos/playcanvas/engine/statuses/b2b620e09b3b1a42e1edce03eee66e0c15180a43"}}}}
{"actor":{"display_login":"guycalledfrank"}}