Microsoft DirectX 9.0 SDK Update (October 2004)

LightType Enumeration

Language:

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

Defines the light type.

Definition

Visual Basic .NET Public Enum LightType
C# public enum LightType
Managed C++ __value public enum LightType
JScript .NET public enum LightType

Members

Member Value Description
Directional 3 Light is a directional light source. It is equivalent to using a point light source at an infinite distance.
Spot 2 Light is a spotlight source. It is similar to a point light, except that the area of illumination is limited to a cone. This light type has a direction and several other parameters that determine the shape of the cone it produces. For more information, see the Light class.
Point 1 Light is a point source. The light has a position in space and radiates light in all directions.

Remarks

Directional lights are slightly faster than point lights, but point lights look a little better. Spotlights offer interesting visual effects but are slow.

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 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