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 xr-environment #2847

Merged
merged 3 commits into from Oct 8, 2021
Merged

Fix xr-environment #2847

merged 3 commits into from Oct 8, 2021

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Oct 7, 2021

I noticed recently that though the xr-environment attribute is supposed to be opt-in for WebXR estimated lighting, it was in fact enabled all the time accidentally. This rectifies that and also takes care of properly disposing of it at session end.

A handy way to test this is to edit the snippet in our editor and add the xr-environment attribute. Even though its not exposed in the UI, any MV attributes you add will be respected by both the local view and the mobile deployments, which makes it easy to test advanced features.

@elalish elalish self-assigned this Oct 7, 2021
@elalish elalish requested review from samaneh-kazemi and a user October 7, 2021 21:19
@ghost
Copy link

ghost commented Oct 7, 2021

Is there a way to control the frequency of lighting updates? I know in SceneViewer controlling this helped to reduce pressure on the GPU.

@elalish elalish merged commit 48b3eeb into master Oct 8, 2021
@elalish elalish deleted the xrLighting branch October 8, 2021 17:45
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.

None yet

1 participant