pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.62k stars 1.6k forks source link

[v9] fix!: don't automatically set texture colorSpace, colorMap fallback #3163

Closed CodyJasonBennett closed 7 months ago

CodyJasonBennett commented 9 months ago

Removes automatic sRGB conversion for textures which is wrong for data textures to align with vanilla behavior. A color-map fallback for built-in materials is mirrored from https://github.com/mrdoob/three.js/pull/27042 with aliases before https://github.com/mrdoob/three.js/pull/22748.

Related: https://github.com/mrdoob/three.js/pull/25857

codesandbox-ci[bot] commented 9 months ago

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.

Latest deployment of this branch, based on commit fca8de735c462a771edd3c10472a7c8c356dcade:

Sandbox Source
example Configuration