Platform SDK: DirectX |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The Flare sample shows how to create a lens flare effect, using alpha blending.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\Flare
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Flare.exe
Press F1 to see available commands, or choose from the menu.
In this sample, lens flare is simulated with mathematical functions that govern the position of each flare. The flares are rendered using additive alpha blending and animated to give a sparkle effect.