The process in which electromagnetic radiation is redirected in all directions as it passes through a medium.