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

OpenXR: Add support for visibility mask #91750

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BastiaanOlij
Copy link
Contributor

@BastiaanOlij BastiaanOlij commented May 9, 2024

This PR adds a new OpenXR node that, if supported by the XR runtime, renders a mask that covers the parts of the screen that are never visible to the user due to lens distortion. This prevents costly fragments being rendered in those areas and should lead to a small performance boost.

It's simply a matter of adding the node as a child node of the camera:
image

The end result is visible in the preview:
image

Todos:

  • Need to fix thread check when we're not using multi threading
  • Need to ensure this geometry is rendered first, esp on Mobile where we don't use a depth prepass. TBDR helps here but can't be relied upon on desktop.
  • Need an icon (help please!)
  • Maybe add a switch in OpenXR project settings?

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.

None yet

1 participant