shadowColor
The color of any shadow cast by a sprite.
Declaration
var shadowColor: UIColor { get set }var shadowColor: NSColor { get set }Discussion
The default color is black with an opacity (alpha) of 0.5.
When lighting is calculated, shadows are created as if a ray was cast out from the light node’s position. If a sprite casts a shadow, the rays are blocked when they intersect with the sprite’s physics body. Otherwise, the sprite’s texture is used to generate a mask, and any pixel in the sprite node’s texture that has an alpha value that is nonzero blocks the light.
Shadows may be cast on content that is rendered prior to the sprite, even if that content does not otherwise interact with the light.