Instance Property

falloff

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

Declaration

@property(nonatomic) CGFloat falloff;

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

ambientColor

The ambient color of the light.

lightColor

The diffuse and specular color of the light source.

shadowColor

The color of any shadow cast by a sprite.