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

Allow efficiently clearing depth and stencil buffers #18

Open
ianmackenzie opened this issue Aug 11, 2019 · 0 comments
Open

Allow efficiently clearing depth and stencil buffers #18

ianmackenzie opened this issue Aug 11, 2019 · 0 comments

Comments

@ianmackenzie
Copy link

Right now to clear the stencil or depth buffer it is necessary to do a hack like drawing a full-screen quad. It would be useful (and presumably more efficient) to have something like some special Entity values WebGL.clearDepthBuffer and WebGL.clearStencilBuffer that would end up simply calling gl.clearDepth() or gl.clearStencil() when drawn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant