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