Fog Color |
Fog color for both pixel and vertex fog is set through the RenderStateManager.FogColor property. The render state values can be any RGB color, specified as an RGBA color. The alpha component is ignored.
The following C# code example sets the fog color to white.
[C#]
// For this example, device is a valid Device object. // Get the device's render states object. RenderStates rs = device.RenderState; rs.FogColor = System.Color.White;
Fog is applied differently by the fixed-function pipeline and the programmable pipeline.
For more information, see MiscCaps.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center