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

Set stencilBuffer property of WebGLRenderTarget in WebXRManager #24488

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

mrxz
Copy link
Contributor

@mrxz mrxz commented Aug 11, 2022

Description

In case a browser doesn't implement the WebXR Layers API, the WebXRManager doesn't set the stencilBuffer property on the render target. The underlying framebuffer, however, can have a stencil buffer. Functionally the stencil buffer seems to work for as far as I could test, but the render target incorrectly reports that it doesn't have one.

This PR simply ensures the stencilBuffer property is set accordingly. This is in line with the way it's done in the code path for browsers that do implement the WebXR Layers API (line 325).

@Mugen87
Copy link
Collaborator

Mugen87 commented Aug 11, 2022

@cabanier Does this change look good to you?

@cabanier
Copy link
Contributor

@cabanier Does this change look good to you?

LGTM

@Mugen87 Mugen87 added this to the r144 milestone Aug 11, 2022
@mrdoob mrdoob merged commit 4fbe3bd into mrdoob:dev Aug 12, 2022
@mrdoob
Copy link
Owner

mrdoob commented Aug 12, 2022

Thanks!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
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

Successfully merging this pull request may close these issues.

4 participants