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

Add clearDepth attribute to RenderPass #10159

merged 1 commit into from Nov 17, 2016


Copy link

@fordhurley fordhurley commented Nov 17, 2016

This makes it possible to clear the depth buffer before a RenderPass, which is useful when trying to render overlays using a second scene. I was struggling with this limitation myself when I came across an unanswered Stack Overflow question with the exact same issue:

This solution works for our use case, and seems like it would be useful for at least one other person, so I figured I'd open a PR. It's very likely that there's some way to solve this using the WebGLRenderer options as is, but I haven't found it yet.

@mrdoob mrdoob merged commit 3695450 into mrdoob:dev Nov 17, 2016
Copy link

@mrdoob mrdoob commented Nov 17, 2016


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

Successfully merging this pull request may close these issues.

None yet

2 participants