Microsoft DirectX 9.0 SDK Update (October 2004)

Light.Range Property

Language:

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

Retrieves or sets the distance beyond which the light has no effect.

Definition

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

Property Value

System.Single . Value that indicates the distance beyond which the light has no effect.

This property is read/write. 

Remarks

The maximum allowable value for this member is the square root of MaxValue Leave Site.

This member does not affect directional lights.

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