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

Fix support for environment blend modes on WebXRInterface #93646

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Jun 27, 2024

When testing with XR Tools, @Malcolmnixon noticed that WebXRInterface was not returning the correct environment blend mode when using "immersive-ar". This PR aims to fix that!

Unfortunately, XRSession.environmentBlendMode isn't implemented on all browsers (namely, Firefox and Safari, according to MDN), so it will fallback on some guesses, if necessary.

I've tested in the Meta Quest browser.

@dsnopek dsnopek added this to the 4.3 milestone Jun 27, 2024
@dsnopek dsnopek requested a review from Malcolmnixon June 27, 2024 02:45
@dsnopek dsnopek requested a review from a team as a code owner June 27, 2024 02:45
Copy link
Contributor

@Malcolmnixon Malcolmnixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

Copy link
Contributor

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too

@dsnopek dsnopek force-pushed the webxr-environment-blend-mode branch from 85608b0 to 2f001e6 Compare June 27, 2024 03:02
@akien-mga akien-mga merged commit 7a4cdd9 into godotengine:master Jun 27, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@dsnopek dsnopek deleted the webxr-environment-blend-mode branch July 22, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants