shadowCastingMode property
How this node's meshes cast shadows. Defaults to ShadowCastingMode.on.
ShadowCastingMode.off excludes them from every shadow map (they still
draw); ShadowCastingMode.shadowsOnly does the reverse, casting while
staying out of the color image. This does not affect whether the meshes
receive shadows. Ands with each MeshPrimitive.castsShadow, and is not
inherited by children; set it on each mesh-bearing node.
Implementation
ShadowCastingMode shadowCastingMode = ShadowCastingMode.on;