Manipulating host resistance structure reveals impact of pathogen dispersal and environmental heterogeneity on epidemics.