Skip to content
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

API: OpenGL - Stencil testing #61

Open
bryphe opened this issue Dec 18, 2018 · 0 comments
Open

API: OpenGL - Stencil testing #61

bryphe opened this issue Dec 18, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bryphe
Copy link
Member

bryphe commented Dec 18, 2018

A feature that we'll potentially need for efficient rendering / culling in revery (like, for the overflow: hidden case) is a stencil buffer. There's a great overview on Stencil Testing

There's a few items we'd need:

  • Add GL_STENCIL_TEST to our variant of options to enable / disable
  • Add the ability to clear the GL_STENCIL_BUFFER_BIT
  • Add the glStencilMask API
  • Add the glStencilFunc API
  • Add the glStencilOp API

A fun way to test this would be to render a plane underneath the cube, render the cube's reflection, and use the stencil buffer to constrain the reflection to the plane's dimensions. We could find simpler ways to test this out, too, though.

@bryphe bryphe added enhancement New feature or request help wanted Extra attention is needed labels Dec 18, 2018
@bryphe bryphe changed the title API: Stencil testing API: OpenGL - Stencil testing Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant