New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depth test API + examples #29
Conversation
`depth` module with `DepthTestMode`, `DepthTestFunction`, `Context::set_depth_test_mode()`; depth test example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is crystal clear, well-documented, and fits in with the rest of the API. I'm extremely grateful, especially because I don't have a lot of experience with depth-testing.
Thanks so much!
I somehow failed to account for web: The reason I chose From what I gather, both libraries use WebGL, which is more or less OpenGL ES, which only has One solution could be to make |
I think using |
* Implemented POC depth testing: `depth` module with `DepthTestMode`, `DepthTestFunction`, `Context::set_depth_test_mode()`; depth test example. * Documented depth test API. * Added `DepthTestMode::depth_mask`. * Fixed `depth` example. * Derives on `depth` types, minor example tweak. * Added `3d_scene` example.
Addresses #19. I'm not an expert on 3D graphics by any means, so don't take it as "the correct thing" right away - it might be but I have no way of knowing.