Contents

shadowColor

The color of shadows cast by the light. Animatable.

Declaration

var shadowColor: Any { get set }

Discussion

The value of this property is an NSColor or CGColor object. SceneKit blends the light’s color with other colors in the rendered image to produce a shadow effect. The color’s opacity (alpha value) determines the intensity of the shadows. The default shadow color is black with 50% opacity.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Managing Shadows Cast by the Light