{"action":"created","issue":{"url":"https://api.github.com/repos/phaazon/luminance-rs/issues/47","repository_url":"https://api.github.com/repos/phaazon/luminance-rs","labels_url":"https://api.github.com/repos/phaazon/luminance-rs/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/phaazon/luminance-rs/issues/47/comments","events_url":"https://api.github.com/repos/phaazon/luminance-rs/issues/47/events","html_url":"https://github.com/phaazon/luminance-rs/issues/47","id":272341396,"number":47,"title":"How to cull faces?","user":{"login":"twetzel59","id":27702327,"avatar_url":"https://avatars2.githubusercontent.com/u/27702327?v=4","gravatar_id":"","url":"https://api.github.com/users/twetzel59","html_url":"https://github.com/twetzel59","followers_url":"https://api.github.com/users/twetzel59/followers","following_url":"https://api.github.com/users/twetzel59/following{/other_user}","gists_url":"https://api.github.com/users/twetzel59/gists{/gist_id}","starred_url":"https://api.github.com/users/twetzel59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twetzel59/subscriptions","organizations_url":"https://api.github.com/users/twetzel59/orgs","repos_url":"https://api.github.com/users/twetzel59/repos","events_url":"https://api.github.com/users/twetzel59/events{/privacy}","received_events_url":"https://api.github.com/users/twetzel59/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-08T20:39:22Z","updated_at":"2017-11-08T22:52:42Z","closed_at":null,"author_association":"NONE","body":"Hello, might it be possible to enable face culling? I am considering writing a game with luminance and face culling is a common and easy optimization.\r\n\r\nI looked through the docs and source, but I didn't see any mention of this. A workaround I am using for a test/example introduces GL state and unsafe code, which isn't that preferable...\r\n\r\n```rust\r\nentry(|_| {\r\n    pipeline(&screen, [0., 0., 0., 1.], |shade_gate| {\r\n        shade_gate.shade(&shader, |render_gate, _| {\r\n            render_gate.render(None, true, |tess_gate| {\r\n                unsafe { gl::Enable(gl::CULL_FACE); }\r\n                            \r\n                tess_gate.render((&model).into());\r\n\r\n                unsafe { gl::Disable(gl::CULL_FACE); }                            \r\n            });\r\n        });\r\n    });\r\n});\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/phaazon/luminance-rs/issues/comments/342988395","html_url":"https://github.com/phaazon/luminance-rs/issues/47#issuecomment-342988395","issue_url":"https://api.github.com/repos/phaazon/luminance-rs/issues/47","id":342988395,"user":{"login":"phaazon","id":506592,"avatar_url":"https://avatars3.githubusercontent.com/u/506592?v=4","gravatar_id":"","url":"https://api.github.com/users/phaazon","html_url":"https://github.com/phaazon","followers_url":"https://api.github.com/users/phaazon/followers","following_url":"https://api.github.com/users/phaazon/following{/other_user}","gists_url":"https://api.github.com/users/phaazon/gists{/gist_id}","starred_url":"https://api.github.com/users/phaazon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phaazon/subscriptions","organizations_url":"https://api.github.com/users/phaazon/orgs","repos_url":"https://api.github.com/users/phaazon/repos","events_url":"https://api.github.com/users/phaazon/events{/privacy}","received_events_url":"https://api.github.com/users/phaazon/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T22:52:42Z","updated_at":"2017-11-08T22:52:42Z","author_association":"OWNER","body":"Yeah, I knew I’d need it and that others would as well. I need to see where to put the concept, maybe in `RenderGate`. I’ll try to add it as soon as possible. Thanks for the report!"}}
{"actor":{"display_login":"phaazon"}}