fog in cubic form

hi

is there any way to get local or exponential height fog in cubic shape / form rather than sphere form

thanks