|This property is available only when developing for Windows.|
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object in the scene. In range-based fog, all fog methods work as usual, except that they use range instead of depth in the computations.
Range is the correct factor to use for fog computations, but depth is commonly used instead because range is time-consuming to compute and depth is generally already available. Using depth to calculate fog has the undesirable effect of having the fogginess of peripheral objects change as the viewer's eye moves - in this case, the depth changes and the range remains constant.
Because no hardware currently supports per-pixel range-based fog, range correction is offered only for vertex fog.