pmndrs / drei

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

MeshReflectorMaterial doesn't work with three 137 #754

Open besjanhallaqi opened 2 years ago

besjanhallaqi commented 2 years ago

Problem description:

MeshReflectorMaterial doesn't work with three 137, in 136 works but not how excepted, but in 135 works perfectly.

Relevant code:\

https://codesandbox.io/s/vigilant-buck-5sch7?file=/src/App.js

loekTheDreamer commented 2 years ago

I've been struggling with this all day. Thanks to your codesandbox, i finally figure out the problem: the versions are messed up. I couldn't understand why the codesandbox works and on My machine, it doesn't.

I found that this combo works correctly with create-react-app:

"three": "^0.136.0",
"@react-three/drei": "^8.3.1",
"@react-three/fiber": "^7.0.26",

Hope it fixes your issue.