There is not a PointLight.castShadow
property, but there is a SpotLight.castShadow
property.
It seems like all lights that can cast shadows should have this same option to enable/disable shadow casting.
Why isn’t this the case?
There is not a PointLight.castShadow
property, but there is a SpotLight.castShadow
property.
It seems like all lights that can cast shadows should have this same option to enable/disable shadow casting.
Why isn’t this the case?
Maybe it’s not in the docs, but that type of light has this property.
For example: three.js examples , line 56 in the source code.
My bad also, I forgot castShadow comes from Object3D, shared with non-lights too (although I don’t think all objects can castShadow, so probably wouldn’t put it there myself).