Is there a direct correlation between mass shooters and mental illness?

Is there a direct correlation between mass shooters and mental illness?