There are two major types of vitamin D. These are vitamin D2 ergocalciferol, and vitamin D3 cholecalciferol. Vitamin D2 is not produced by the human body. Sources include plants such as mushrooms. Vitamin D3 is produced naturally in the skin, when exposed to sufficient sunlight. Other source include supplements and certain foods such as oily fish.