FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use `loadCubeMapTexture` instead of `CubeTextureLoader` for light probes by mrxz · Pull Request #5735 · aframevr/aframe · GitHub

Use loadCubeMapTexture instead of CubeTextureLoader for light probes - #5735

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-probe-lights
Jun 2, 2025
Merged

Use loadCubeMapTexture instead of CubeTextureLoader for light probes#5735
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-probe-lights

Conversation

mrxz commented Jun 2, 2025

Copy link
Copy Markdown
Contributor

Fixes #5734

Description:
Probe lights used an instance of THREE.CubeTextureLoader to create a CubeTexture which was then fed into the LightProbeGenerator. With #5454 the possible values for srcs for an envMap were broadened, meaning they were no longer guaranteed to be URLs, but could also contain HTMLImageElement.

The loadCubeMapTexture method on the material system already handles all possible values. This PR replaces the light component to use loadCubeMapTexture instead of manually using a CubeTextureLoader instance.

Changes proposed:

  • Use loadCubeMapTexture when loading a cubemap texture for light probes

dmarcos commented Jun 2, 2025

Copy link
Copy Markdown
Member

Thank you!

dmarcos merged commit 241a775 into aframevr:master Jun 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Probe Lighting Errors On Load and Doesn't Contribute to Scene Lighting

2 participants


Back | FazBrowse Home | New Git URL