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

Allow WebGLCubeMap to accept renderTarget textures #27230

Merged
merged 3 commits into from Nov 23, 2023

Conversation

elalish
Copy link
Contributor

@elalish elalish commented Nov 22, 2023

Related issue: #27183 (comment)

Description

You can make an equirect image using a RenderTarget and set it as scene.environment and it works just fine (it becomes a cubemap), but when using the same image as scene.background you get a background quad instead of a cubemap. This one-liner fixes the problem, since it removes a check that appears to be vestigial.

Copy link

github-actions bot commented Nov 22, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
668.7 kB (165.9 kB) 668.6 kB (165.9 kB) -30 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
449.7 kB (108.9 kB) 449.6 kB (108.9 kB) -30 B

@mrdoob mrdoob added this to the r159 milestone Nov 23, 2023
@mrdoob mrdoob merged commit 525242a into mrdoob:dev Nov 23, 2023
12 checks passed
@elalish elalish deleted the background branch November 27, 2023 05:35
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* remove unnecessary check

* simplified example

* revert build files
@Mugen87 Mugen87 mentioned this pull request Mar 25, 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.

None yet

2 participants