Emulating Radiative Transfer in Astrophysical Environments