Skip to content

XRManager: Adds native equirect and quad media layer rendering#33286

Open
danrossi wants to merge 2 commits intomrdoob:devfrom
danrossi:equirect-layers-new
Open

XRManager: Adds native equirect and quad media layer rendering#33286
danrossi wants to merge 2 commits intomrdoob:devfrom
danrossi:equirect-layers-new

Conversation

@danrossi
Copy link
Copy Markdown
Contributor

Related issue: #31029 #31033

Description

This PR adds equirect and quad media layer render to XRManager / WebGPURenderer. Supports mono and stereo layouts. Meshes are add to the stage for non layer supported headsets and is disabled during XR sessions with blend meshes required to see the native layers.

Refactor non media quad and cylinder layer creation with common mesh and blend utility methods to remove duplication.

I was unable to merge the fork so had to recover in a new branch.

- Adds equirect and quad media layer render to XRManager
- Refactor quad and cylinder layer creation with common mesh and blend utility methods
- Add media layer example
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 29, 2026

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.98
85.45
359.98
85.45
+0 B
+0 B
WebGPU 633.36
175.62
635.64
176.51
+2.29 kB
+899 B
WebGPU Nodes 631.48
175.32
633.76
176.22
+2.29 kB
+900 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 492.22
120.03
492.22
120.03
+0 B
+0 B
WebGPU 705.41
190.51
707.71
191.39
+2.3 kB
+887 B
WebGPU Nodes 654.63
177.76
656.93
178.69
+2.3 kB
+921 B

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.

1 participant