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 - expose framebuffer scale factor #6074

Merged
merged 3 commits into from Feb 21, 2024

Conversation

Maksims
Copy link
Contributor

@Maksims Maksims commented Feb 21, 2024

It is possible to control the resolution of the XR framebuffer by providing a scale factor when starting an XR session.

New APIs:

// pc.XrManager
xr.start(camera, type, space, {
    framebufferScaleFactor: 1.0 // optional property by which framebuffer resolution will be multiplayed when session is being created
});
xr.framebufferScaleFactor // read-only value of a current session framebuffer scale factor

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

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

Nice one.

@mvaligursky mvaligursky added area: xr XR related issue enhancement labels Feb 21, 2024
@mvaligursky mvaligursky merged commit 45c0bd5 into playcanvas:main Feb 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: xr XR related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants