{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/4536","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4536/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4536/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4536/events","html_url":"https://github.com/pixijs/pixi.js/issues/4536","id":281864536,"node_id":"MDU6SXNzdWUyODE4NjQ1MzY=","number":4536,"title":"When enable depthTest , there is a strange effect","user":{"login":"finscn","id":288367,"node_id":"MDQ6VXNlcjI4ODM2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/288367?v=4","gravatar_id":"","url":"https://api.github.com/users/finscn","html_url":"https://github.com/finscn","followers_url":"https://api.github.com/users/finscn/followers","following_url":"https://api.github.com/users/finscn/following{/other_user}","gists_url":"https://api.github.com/users/finscn/gists{/gist_id}","starred_url":"https://api.github.com/users/finscn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finscn/subscriptions","organizations_url":"https://api.github.com/users/finscn/orgs","repos_url":"https://api.github.com/users/finscn/repos","events_url":"https://api.github.com/users/finscn/events{/privacy}","received_events_url":"https://api.github.com/users/finscn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-13T19:17:06Z","updated_at":"2019-02-24T02:34:16Z","closed_at":"2017-12-13T20:24:22Z","author_association":"CONTRIBUTOR","body":"I use  `app.renderer.state.setDepthTest(true)` to enable DEPTH_TEST\r\n\r\nbut the sprites can't be rendered correct.\r\n\r\nI set gl_Position.z in shader (with custom shader) , one sprite is \r\n\r\n```\r\n// A\r\ngl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\r\n```\r\n\r\nanother one is \r\n```\r\n// B\r\ngl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, -1.0, 1.0);\r\n```\r\n\r\nI expect A could be over B , but not.\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/288367/33957565-ef113e98-e07c-11e7-8535-ac6f6f199e89.png)\r\n\r\nthe html-logo  & bunny are both with transparent background.\r\n\r\nSo How to use `setDepthTest` ?\r\n"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/466727494","html_url":"https://github.com/pixijs/pixi.js/issues/4536#issuecomment-466727494","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/4536","id":466727494,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NjcyNzQ5NA==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-02-24T02:34:16Z","updated_at":"2019-02-24T02:34:16Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs."}}
{"actor":{"display_login":"lock"}}