Meditation is a contributing cause, though there are others also. Following the 8 fold path, practicing the 6 paramita's, aspiring to great bodhicitta, or whatever your practice may be, helps to accumulate merit which is absolutely necessary as well.