Hi,
I try to create an object that receives shadows but doesn’t cast them. If you look at the red box in this fiddle you can see that it casts and receives a shadow even if castShadow is set to false.
https://jsfiddle.net/Thor_Bux/g1Loqb08/7/
I was looking around a lot but could not find any solution to that so far.
Any hint highly appreciated.
That is really strange behavior. According to the docs on castShadow and receiveShadow, the following should work:
object.castShadow = false;
object.receiveShadow = true;
However, after playing with the JSFiddle, it seems that any time receiveShadow
is enabled, the castShadow
automatically enables as well. I wonder if you found a bug?
Found it to be related to the renderer.shadowMap.type=VSMShadowMap
if I change that to another value it works as expected. The bug must be in there.
2 Likes
Thanks @EliasHasle forgot to mention that here
1 Like