DirectX SDK |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The Lights sample shows how to turn on and move the various types of Direct3D lights. The lights fly around, illuminating the scene, and switch every few seconds to a new type of light.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\Lights
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Lights.exe
Press F1 to see available commands, or choose from the menu.
This sample shows how to set up the light properties for each of the types of lights available. It also shows how to dynamically orient the lights on each frame.