The master regulatory gene for eye development found across many species is Pax6. In humans, the gene is written PAX6, while Pax6 commonly refers to the gene or its encoded transcription factor in animals such as mice and fruit flies.
Pax6 helps activate and coordinate networks of genes involved in forming the lens, retina, cornea, and other eye structures. It is a transcription factor, meaning that its protein binds DNA and regulates the activity of other genes. Mutations in the human gene can cause aniridia, a condition in which the iris is severely underdeveloped or absent.
Pax6 is remarkably conserved across bilaterian animals. Experiments have shown that mouse Pax6 can trigger aspects of eye development in the fruit fly, even though vertebrate camera eyes and insect compound eyes evolved very different structures. This is a classic example of deep homology: different organs can share ancient developmental machinery.
“Master gene” is a useful shorthand, but eye development requires many interacting genes and signals. Sonic hedgehog, Bmp4, and Hox genes also have important developmental roles, yet none is the standard canonical answer to this question.