Hi, I don’t explicitly defined renderer in my code.
I think Canvas component automatically generate renderer in react-three-fiber(Maybe).
By the way,
in discord of threejs, kind person tell me how to fix.
Here is my procedure.
- I remove this line.
texture.encoding = THREE.sRGBEncoding
- upgrade r3f
- set
flat
andlinear
props of Canvas component as true.
Then, the color is same as original! here is the code i already fixed r3f ibl envmap simple (forked) - CodeSandbox
Thank you for your help!