Canvas shadowMap not working #624
Replies: 3 comments 15 replies
-
could you make a codesandbox for this? shadows are working, i use them regularly, but need to run this code to know what's up. |
Beta Was this translation helpful? Give feedback.
-
couple of errors: https://codesandbox.io/s/hungry-easley-lwmpi?file=/src/App.js ambientlight cant cast shadow, i guess that's what's crashing threejs the model didn't cast shadow nor receive shadow, if it doesn't cast the plane underneath cant receive. the light itself was positioned improperly |
Beta Was this translation helpful? Give feedback.
-
Am having issue with shadows in V6
Shadowmap works perfectly while - Importing Canvas from 'react-three-fiber' ( older version ) Nothing show while using V6 '@react-three/fiber' ! Is the issue version related or I missed out something ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Pretty new to Three.js and r3f and I'm having trouble with shadowMap working in my project.
This is my current code:
Code for Plane:
Everytime this runs I get this error in the console:
"Uncaught TypeError: Cannot read property 'autoUpdate' of undefined
at WebGLShadowMap.render (three.module.js:20341)
at WebGLRenderer.render (three.module.js:25527)
at renderGl (web.js:70)
at web.js:85
at Map.forEach ()
at renderLoop (web.js:82)"
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions