Similar to the effect of UV rays on the skin in the form of sunburns, eyes also suffer from inflammation. Photokeratitis is the medical term that refers to having sunburn on the cornea. Luckily, the damage to the cornea, in this case, is temporary and heals within a few days.