Skip to main content
Powered by Discourse
You have to set castShadow and receiveShadow of the shelf object to true. And the floor objects needs receiveShadow set to true.
Did you check if all children of this object has also these shadow properties updated?
Have you checked Material.shadowSide ?
I set materialNeedsUpdate=true, matrixAutoUpdate=true
Is there anything else that you mean?
I have tried to do all
| Side ID | Side |
|---|---|
| THREE.FrontSide | back side |
| THREE.BackSide | front side |
| THREE.DoubleSide | both sides |
Still the output has no impact
1 year later
Hi @USMANHEART , have you managed to solve this issue?
6 months later
It is still the same issue
In your snapshots I do not see shadows. Shadows require four things:
- To be enabled in the renderer (e.g.
renderer.shadowMap.enabled = true;) - To be enabled in the light (e.g.
light.castShadow = true;) - To be accepted by the object (e.g.
object.receiveShadow = true;) - To be generated by the object (e.g.
object.castShadow = true;)
Are you sure you have enabled the shadows in the renderer? When I try to recreate your example, the lights look OK. Here is a snapshot:
Wow, I will test again. Thanks for solution