Fog of war effect

how do i make a fog of war effect like in starcraft or c&c? it’s probably something really simple, lol.