![]() |
![]() |
![]() |
Light.Attenuation1 Property |
Language: |
Retrieves or sets a value that specifies how light intensity changes over distance.
Visual Basic .NET Public Property Attenuation1 As Single C# public float Attenuation1 { get; set; } Managed C++ public: __property float get_Attenuation1();
public: __property void set_Attenuation1(float);JScript .NET public function get Attenuation1() : float
public function set Attenuation1(float);
System.Single . Value that specifies how light intensity changes over distance.
This property is read/write.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center