I know how to make fog with serval textures like war3 did in terrains but it has only 2 status:unvisible/visible.
My fog should have 3 status:unvisible(black)/can be detected(light black)/visible. So I want to know exactly how to make the fog like war3.
Now I use a mask texture, and draw rectangle in it,then use shader to blur it.But the mask does not look well.