I’ve force enabled all shadows in a scene like this,
function animate() {
scene.traverse(n => n.castShadow = n.receiveShadow = true)
renderer.render(scene, camera)
requestAnimationFrame(animate)
}
animate()
but there’s not a single shadow visible in the scene.
This code sets castShadow
and receiveShadow
for all objects, including meshes and lights, to true
, yet no shadows appear.
I haven’t seen this happen before. Any ideas what to check? (the project is private, I don’t have a public reproduction yet).