-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
RenderTarget: Add resolveStencilBuffer
.
#28096
Conversation
@Oletus Looking good? |
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
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.
I didn't have time to test this yet, but looks great!
Can you clarify what this means? The description isn't super clear. Does this just mean "use the stencil buffer"? As in even if the render target has stencil enabled this flag can be set to false to disable it's use? |
The flag is only relevant if you use a stencil buffer (when |
Related issue: #27799 (comment)
Description
This PR introduces a new flag
RenderTarget.resolveStencilBuffer
. It can be used to control whether the stencil buffer should be resolved or not when rendering to a multisampled render target.