For activating fog you need two things

set a fog color (fog_color = 3;)

and set the color values of that fog color

vec_set(d3d_fogcolor3,vector(...));

You will see the fog only on the entities in the level, not on the sky because sky is unaffected by fog.