What determines the type of precipitation that falls to Earth?

temperature. obviously :P