pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.23k stars 675 forks source link

Environment "encoding" out of date #2058

Open Igor-Vuk opened 1 month ago

Igor-Vuk commented 1 month ago

I am using the latest version of drei. Seems that instructions and types are still saying to use "LinearEncoding" and "sRGBEncoding". In three js this has been changed to THREE.LinearSRGBColorSpace and THREE.SRGBColorSpace. Whiever veryion I use it doesnt seem to be working and .typescript is giving errors