Much like humans, mushrooms generate vitamin D when exposed to sunlight
Food companies are beginning to capitalize on a little known capability of mushrooms: like humans, they synthesize vitamin D when exposed to ultraviolet radiation like that in sunlight.