Replies: 1 comment 5 replies
-
the dashed syntax just writes single values, but if you do shadow={{ camera: { ... you are overwriting entire objects with just an empty class with two props. camera is a real THREE.Camera and after that operation it would just be { far, left, ... }. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to three.js as well as react-three-fiber. I was doing a small tutorial on this from youtube and came across this error.
I have a canvas with a directional light, some other ambient and point lights, some meshs and a plane mesh for casting shadow.
The tutorial was bit old and used this code in the directional light
This code worked fine and casted the shadows on to the plane mesh.
I found that these properties were deprecated and replaced with this:
This then threw this error in the browser:
Edit:
I'm using:
"react-three-fiber": "^5.3.19"
"three": "^0.126.1"
Beta Was this translation helpful? Give feedback.
All reactions