Instance Property

ambientColor

The ambient color of the light.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(nonatomic) UIColor *ambientColor;
macOS
@property(nonatomic) NSColor *ambientColor;

Discussion

The alpha value of the color is ignored. The default color is black, meaning that the light does not have an ambient component. The ambient component of the light is not affected by the light’s falloff property, nor is it affected by any normal map (normalTexture) on the sprite node.

See Also

Configuring the Lighting Properties

lightColor

The diffuse and specular color of the light source.

shadowColor

The color of any shadow cast by a sprite.

falloff

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