Repeated exposure to natural or artificial sunlight is a risk factor for eye cancer. An example of artificial sunlight is light from a tanning bed.