There are two different forms of vitamin D: vitamins D-2 and D-3. Vitamin D-2, or ergocalciferol, is the form made by mushrooms from exposure to sunlight. Vitamin D-3, which is also called cholecalciferol, is the type that’s made in your skin. Both types must be converted into the hormone calcitriol before they’re active and able to benefit your body.