Name two ways how the sun affects plant growth.