The polyketide synthase OsPKS2 is essential for pollen exine and Ubisch body patterning in rice.