Heat waves and drought are threatening pasture on farms worldwide, prompting experiments to develop hardier crops.