Plano-convex diffractive microlenses were fabricated in GaN-based materials with a gray-level mask for the first time. The surface relief of the gray-level diffractive microlens on photoresist was transferred onto GaN by inductively coupled plasma etching