The sticky substance formed in the eyes is a collection of mucus and salts found naturally in the tears. It is more on waking in the morning due to the evaporation of tears in the night which concentrates the suspended matter of the tear film. This collects at the corners of the eyes.