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

PMREMGenerator: Fix usage in XR. #27924

Merged
merged 1 commit into from
Mar 16, 2024
Merged

PMREMGenerator: Fix usage in XR. #27924

merged 1 commit into from
Mar 16, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 15, 2024

Fixed #27919

Description

This PR ensures PMREMGenerator can generate PMREMs when using XR.

Similar to CubeCamera or Reflector, the component has to set renderer.xr.enabled to false during the generation process and then restore the flag.

@Mugen87 Mugen87 added this to the r163 milestone Mar 15, 2024
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
670.2 kB (166.2 kB) 670.3 kB (166.2 kB) +151 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
450.4 kB (108.9 kB) 450.6 kB (108.9 kB) +151 B

@mrdoob mrdoob merged commit 7f7533d into mrdoob:dev Mar 16, 2024
12 checks passed
kipash pushed a commit to needle-tools/three.js that referenced this pull request Aug 23, 2024
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.

Black Environment From Cube Camera in VR
2 participants