The steroid precursor of vitamin D2. It is found in cell membranes of fungi, and is their functional equivalent of cholesterol. It is also found in the membranes of some protists.