{"action":"closed","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10729","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10729/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10729/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10729/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10729","id":59840925,"number":10729,"title":"Decouple GL_DEPTH_TEST and glDepthMask","user":{"login":"jdedona","id":1031537,"avatar_url":"https://avatars.githubusercontent.com/u/1031537?v=3","gravatar_id":"","url":"https://api.github.com/users/jdedona","html_url":"https://github.com/jdedona","followers_url":"https://api.github.com/users/jdedona/followers","following_url":"https://api.github.com/users/jdedona/following{/other_user}","gists_url":"https://api.github.com/users/jdedona/gists{/gist_id}","starred_url":"https://api.github.com/users/jdedona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdedona/subscriptions","organizations_url":"https://api.github.com/users/jdedona/orgs","repos_url":"https://api.github.com/users/jdedona/repos","events_url":"https://api.github.com/users/jdedona/events{/privacy}","received_events_url":"https://api.github.com/users/jdedona/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T18:37:52Z","updated_at":"2015-04-24T09:17:06Z","closed_at":"2015-04-24T09:17:06Z","body":"Can't draw 2D UI in 3D space because enabling depthMask, and depth test are coupled through Director::setDepthTest.\r\n\r\nIn Renderer::visitRenderQueue, if _isDepthTestFor2D is set it will enable both depthTest and depthMask. However when drawing UI you can have several nodes on the same plane overlapping one another. The only way to draw them in order without Z fighting is to have depthTest set to True and depthMask set to False. I can't see a way to do this through current API.\r\n"}}