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

fix(HDRCubeTextureLoader): colorSpace <=> encoding fallback #339

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

kingshukkundu
Copy link
Contributor

@kingshukkundu kingshukkundu commented Jan 16, 2024

Why

According to three.js version 0.152 migration guide, Texture.encoding has been replaced with Texture.colorSpace with THREE.NoColorSpace as the default value

What

Fixed warning logged in console "THREE.Texture: Property .encoding has been replaced by .colorSpace."

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

texture.encoding is deprecated, replaced with colorSpace
Copy link

codesandbox-ci bot commented Jan 16, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@kingshukkundu kingshukkundu changed the title Update HDRCubeTextureLoader.js fix THREE.Texture: Property .encoding has been replaced by .colorSpace in HDRCubeTextureLoader.js Jan 16, 2024
@kingshukkundu kingshukkundu changed the title fix THREE.Texture: Property .encoding has been replaced by .colorSpace in HDRCubeTextureLoader.js fix: Console warning: "THREE.Texture: Property .encoding has been replaced by .colorSpace in HDRCubeTextureLoader.js" Jan 16, 2024
@CodyJasonBennett CodyJasonBennett changed the title fix: Console warning: "THREE.Texture: Property .encoding has been replaced by .colorSpace in HDRCubeTextureLoader.js" fix(HDRCubeTextureLoader): colorSpace <=> encoding fallback Jan 16, 2024
@CodyJasonBennett CodyJasonBennett merged commit da07863 into pmndrs:main Jan 16, 2024
3 checks passed
Copy link

🎉 This PR is included in version 2.29.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants