fog_start

fog_end

Start and end range for fog. There won't be any fog closer than fog_start; the world will be all foggy beyond fog_end. This way a very sharp fog boundary can be given, for instance for completely hiding everything outside clip_far.

Range:

0 .. 999999 (default: fog_start = 100, fog_end= 1000)

Type:

var

Remarks:

Example:

camera.fog_start = 0.8 * camera.clip_far; // fog starts at 80% of clip range
camera.fog_end = 0.9 * camera.clip_far; // total foggy at 90% of clip range

See also:

VIEW, fog_color, d3d_fogcolor, vecFog, vecFogColor

► latest version online