Instance Property

falloff

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

Declaration

var falloff: CGFloat { get set }

Discussion

The default value is 1.0, which means the light decays linearly with distance. The value must be a positive number less than or equal to 1.0.

See Also

Configuring the Lighting Properties

var ambientColor: UIColor

The ambient color of the light.

var lightColor: UIColor

The diffuse and specular color of the light source.

var shadowColor: UIColor

The color of any shadow cast by a sprite.