C3DLight::SetFalloff

Top  Previous  Next

Syntax:

 

SetFalloff(float  falloff)

 

Purpose:

Sets the decrease in illumination between a spotlight's inner and outer cones..

 

Parameters:

falloff - New falloff value.

 

Returned value(s):

None

 

Application:

light1.SetFalloff(2.0)

 

Class Hierarchy
C3DObject
-------C3DLight

 

Additional Info:

Falloff values can range from +/- infinity.

 

The effect of various falloff values on the actual lighting is subtle, and a small performance penalty is incurred by shaping the falloff curve with falloff values other than 1.0. For these reasons, this value defaults to 1.0