Microsoft DirectX 9.0 SDK Update (October 2004)

Light.Falloff Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the decrease in illumination between a spotlight's inner cone (the angle specified by InnerConeAngle) and the outer edge of the outer cone (the angle specified by OuterConeAngle).

Definition

Visual Basic .NET Public Property Falloff As Single
C# public float Falloff { get; set; }
Managed C++ public: __property float get_Falloff();
public: __property void set_Falloff(float);
JScript .NET public function get Falloff() : float
public function set Falloff(float);

Property Value

System.Single . Value that indicates the decrease in illumination.

This property is read/write. 

Remarks

The effect of falloff, the light attenuation between a spotlight's inner and outer cones, on the lighting is subtle. Furthermore, a small performance penalty is incurred by shaping the falloff curve. For these reasons, most developers set this value to 1.0.

Exceptions
InvalidCallException The property value is invalid.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center