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

WebXRManager: Allow early set of foveation. #25282

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

saitonakamura
Copy link
Contributor

@saitonakamura saitonakamura commented Jan 13, 2023

Description

Currently foveation is set to 1.0 on setSession, and there's no way to set it before, because it's not saved anywere when session is not active. So the only way to set it to a non-default value is to call setSession and call setFoveation afterwards. That leads to hacks in certain scenarios like pmndrs/react-xr#235. This PR allows setting it beforehand, while being backwards compatible

This contribution is funded by Mayflower

Currently foveation is set to 1.0 on setSession,
and there's no way to set it before,
because it's not saved anywere when session is not active.
So the only way to set it to a non-default value is to call setSession and
call setFoveation afterwards.
That leads to hacks in certain scenarios like pmndrs/react-xr#235.
This PR allows setting it beforehand, while being backwards compatible
@Mugen87 Mugen87 changed the title feat: allow early set foveation WebXRManager: Allow early set of foveation. Jan 13, 2023
@Mugen87 Mugen87 added this to the r149 milestone Jan 14, 2023
@Mugen87 Mugen87 merged commit 5275bbf into mrdoob:dev Jan 25, 2023
@saitonakamura saitonakamura deleted the allow-early-set-foveation branch January 25, 2023 16:13
0b5vr added a commit to 0b5vr/three-ts-types that referenced this pull request Jan 30, 2023
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

2 participants