Light properties describe a light object's type and color. Depending on the type of light being used, a light can have properties for attenuation and range, or for spotlight effects. But, not all types of lights will use all properties. Direct3D Immediate Mode uses the D3DLIGHT2 structure to carry information about light properties for all types of lights. This section contains information for all light properties. Information is divided into the following groups:
Light properties affect how a light object illuminates objects in a scene. For more information, see Using Lights, Setting Light Properties, and The Mathematics of Direct3D Lighting.