About five per cent of melanomas in the eye are caused by exposure to sunlight, while the majority are not.