You need to set a couple of keys in your worldspawn.
key / value
farplane / <vision distance, e.g. 6000>
farplane_color / <farplane color in normalized RGB, e.g. 0.5 0.5 0.5>
farplane_cull / <wether or not to cull the world behind your fog to improve fps, can be 1 or 0>