ContactShadows rotation

Hi, i need rotation ContactShadows
i use ContactShadows from @react-three/drei and use well like this


and then i want rotation shadow so i try roation plane, camera but shadow is off the board
i want see shadow left not only bottion like somthinh wall in left and recevied shadow use ContactShadows please what should i do?
image


ContactShadows won’t be of much help for anything more complex than a flat shadow of convex meshes on the ground (technically you could try to rotate this entire casing, not just the shadow plane, but having a ContactShadow camera at an angle will likely break the effect as intersections will become “triangular”.)

If you want ultra-realistic shadows - AccumulativeShadows may be a better choice. Otherwise just go for three-csm.

2 Likes

thanks for help me
i tried to AccumulativeShadows but this is crash with TransformControls
image
i saw someone same issue

and three-csm is good but not work blur
i think i have to use shader could you advice for me shadow can blur like ContactShadows
thank you so much answer to me