IDirect3DRMFrame::SetSceneFogParams

HRESULT SetSceneFogParams(D3DVALUE rvStart, D3DVALUE rvEnd,

D3DVALUE rvDensity);

Sets the current fog parameters for this scene.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

rvStart and rvEnd

Fog start and end points for linear fog mode. These settings determine the distance from the camera at which fog effects first become visible and the distance at which fog reaches its maximum density.

rvDensity

Fog density for the exponential fog modes. This value should be in the range 0 through 1.