| Platform SDK: DirectX |
The CONST_D3DRENDERSTATESINGLE enumeration defines device render states that are set and retrieved through the Direct3DDevice7.SetRenderStateSingle and Direct3DDevice7.GetRenderStateSingle methods.
Type CONST_D3DRENDERSTATESINGLE
D3DRENDERSTATE_FOGDENSITY = 38
D3DRENDERSTATE_FOGEND = 37
D3DRENDERSTATE_FOGSTART = 36
End Type
These render states enable you to exclude fog effects for positions close to the camera. When using z-based pixel fog, for example, you could set the starting depth to 0.3 to prevent fog effects for depths between 0.0 and 0.299, and the ending depth to 0.7 to prevent additional fog effects for depths between 0.701 and 1.0.
Direct3DDevice7.SetRenderStateSingle, Direct3DDevice7.GetRenderStateSingle