Microsoft DirectX 9.0 SDK Update (October 2004)

Light.Attenuation0 Property

Language:

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

Retrieves or sets a value that specifies how light intensity changes over distance.

Definition

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

Property Value

System.Single . Value that specifies how light intensity changes over distance.

This property is read/write. 

Remarks

Attenuation values are ignored for directional lights. This member represents an attenuation constant. Its valid values range from 0.0 to infinity. For non-directional lights, all three attenuation values should not be set to 0.0 simultaneously.

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