Lights appearance changing from version <= 4.x to 5.x #909
-
Hi, Example with react-three-fiber 3.x (the same happens with 4.x) Same example but with react-three-fiber 5.x This doesn't seem related to three.js, infact I can't see any difference if I change three.js version, only if I change the version of react-three-fiber Why do you think this happens? Is there any way to make lights appear the same as in 3.x-4.x version? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
thats bc r3f uses srgb encoding and converts all colors and textures. threejs uses liner colorspace and therefore has wrong gamma, which is that very thing that makes 3d look cheap and plasticy. aframe and r3f fix it by default. if you dont want it: Canvas colorManagement={false} see: https://www.donmccurdy.com/2020/06/17/color-management-in-threejs/ |
Beta Was this translation helpful? Give feedback.
thats bc r3f uses srgb encoding and converts all colors and textures. threejs uses liner colorspace and therefore has wrong gamma, which is that very thing that makes 3d look cheap and plasticy. aframe and r3f fix it by default. if you dont want it: Canvas colorManagement={false}
see: https://www.donmccurdy.com/2020/06/17/color-management-in-threejs/