DirectX SDK |
Light properties describe a light source'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 D3DLIGHT7 structure (for C++) and the D3DLIGHT7 type (for Visual Basic) to carry information about light properties for all types of light sources. This section contains information for all light properties. Information is divided into the following groups:
Light properties affect how a light source illuminates objects in a scene. For more information, see Using Lights, Setting Light Properties, and Mathematics of Direct3D Lighting.