Process by which green plants convert light to energy by transforming carbon dioxide and water into carbohydrates.