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
merged 1 commit into from Nov 17, 2016

Conversation

Projects
None yet
2 participants
@fordhurley
Copy link
Contributor

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: http://stackoverflow.com/questions/40548144/multiple-scenes-rendering-using-three-renderpass

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

@mrdoob

This comment has been minimized.

Copy link
Owner

mrdoob commented Nov 17, 2016

Thanks!

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