An enzyme that catalyzes the conversion of UDP-galactose and N-acylsphingosine to D-galactosylceramide and UDP.