Instance Property

lightColor

The diffuse and specular color of the light source.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
var lightColor: UIColor { get set }
macOS
var lightColor: NSColor { get set }

Discussion

The default value is white.

If you are using custom shaders, you can substitute an SKUniform object instead.

See Also

Configuring the Lighting Properties

var ambientColor: UIColor

The ambient color of the light.

var shadowColor: UIColor

The color of any shadow cast by a sprite.

var falloff: CGFloat

The exponent for the rate of decay of the light source.