IDirect3DRMLight and IDirect3DRMLightArray Interfaces
Lighting effects are employed to increase the visual fidelity of a scene. The system colors each object based on the object's orientation to the light sources in the scene. The contribution of each light source is combined to determine the color of the object during rendering. All lights have color and intensity that can be varied independently.
An application can attach lights to a frame to represent a light source in a scene. When a light is attached to a frame, it illuminates visual objects in the scene. The frame provides both position and orientation for the light. In other words, the light originates from the origin of the frame it is attached to. An application can move and redirect a light source simply by moving and reorienting the frame the light source is attached to.
Each viewport owns one or more lights. No light can be owned by more than one viewport. For more information about the interdependencies of Direct3D components, see Object Connectivity.
Retained Mode currently provides five types of light sources: ambient, directional, parallel point, point, and spotlight.
For a reference to the methods of the IDirect3DRMLight interface, see IDirect3DRMLight.
This section describes lighting effects available in Direct3D and how your application can use them.