An old saw has it that "cats lick the sunshine from their coats." Apparently that isn't so, and they mostly receive their Vitamin D from their food. The vets here tell us that cats are poor at converting light to vitamin D, unlike their human owners.
Facts over folklore.