Skip to content

docs: explain XR render target pattern#499

Open
buyicoder wants to merge 1 commit into
pmndrs:mainfrom
buyicoder:docs/xr-render-targets
Open

docs: explain XR render target pattern#499
buyicoder wants to merge 1 commit into
pmndrs:mainfrom
buyicoder:docs/xr-render-targets

Conversation

@buyicoder

Copy link
Copy Markdown

Summary

  • Add an advanced docs page explaining how to render to a WebGLRenderTarget while an XR session is active.
  • Document the save/restore pattern for render target, viewport, and XR flags.
  • Link the new page from the getting started tutorial list.

Test plan

  • git diff --check

Closes #373

Co-authored-by: Cursor <cursoragent@cursor.com>
@buyicoder

Copy link
Copy Markdown
Author

Thanks for the docs issue. I kept this focused on the practical render target pattern that the XR layer code already uses internally: save the current render state, temporarily disable XR for the offscreen pass, then restore the render target, viewport, and XR flags.

I only ran git diff --check locally since this is docs-only.

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.

Docs: add explanation on how to render to a render target in XR

1 participant