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

WebXR Render Target Encoding Now Uses renderer.outputEncoding #22919

Merged

Conversation

HexaField
Copy link
Contributor

Follow up to #22918

Description

the previous PR fixed the darkness issue caused by not setting the encoding format, but the solution was inelegant and limited the encoding format to sRGB, this has been fixed to follow whatever is specified in the WebGLRenderer passed into the WebXRManager

This contribution is funded by XRFoundation.

@mrdoob mrdoob added this to the r136 milestone Nov 29, 2021
@mrdoob mrdoob merged commit 38eb843 into mrdoob:dev Nov 29, 2021
@mrdoob
Copy link
Owner

mrdoob commented Nov 29, 2021

Thanks!

@HexaField HexaField deleted the fix/webxr-output-encoding-uses-renderer-format branch November 29, 2021 23:50
@HexaField HexaField changed the title WebXR Render Target Eencoding Now Uses renderer.outputEncoding WebXR Render Target Encoding Now Uses renderer.outputEncoding Nov 29, 2021
@cabanier
Copy link
Contributor

@HexaField do we need to change the color type to srgb/srgba if the renderer is in that mode?
Otherwise I think you might color conversion on devices that use renderbuffers to get MSAA.

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.

3 participants