The process that takes light and carbon dioxide to create glucose (food).